C++ / NetBeans FAQs (last updated 12/15/2012) 1 C++ / NetBeans FAQs  How do I show line numbers in the NetBeans editor windows / area?

advertisement
C++ / NetBeans FAQs (last updated 12/15/2012)
1
C++ / NetBeans FAQs
Question: How do I show line numbers in the NetBeans editor windows / area?
Answer: Right click (two finger click on a OSX laptop) on the vertical solid gray bar at the left of the editor window / area and select Show Line Numbers.
Question: How do I turn off that @#$%^&*! comment spell checker in the NetBeans editor?
Answer: Go to Tools, Options, Miscellaneous, select the Spellchecker tab, uncheck C/C++/Fortran Comments and select OK.
Question: In NetBeans, I get an error message stating that I don't have a build host. What does this mean?
Answer: Most likely, it means that NetBeans cannot find your Gnu C++ compiler. This usually happens because of one of two things. First, you may not have a Gnu C++ compiler installed. Second, you installed and opened NetBeans before you installed the Gnu C++ compiler. 1. First, make sure that you have a compiler installed. On OSX or Linux, open a terminal and type “g++” (without the quotes). On Windows, double click on the Cygwin Terminal icon and, in the terminal, type “g+
+” (without the quotes). If you see the message “not input files”, the Gnu C++ compiler is installed and you can move to step 2. If you do not see the message “no input files”, it means that you have not installed the Gnu C++ compiler. Refer to the instructions for your operating system at http://fidelio.cacs.louisiana.edu/ under the “Software: Gnu C++ and NetBeans” section. (Windows users note that the step most often omitted is “In the Select Packages window, left click on “All @ Default” until it reads “All @ Install”,
2. then select Next. (Installation will begin. Go get a snack.”.) 3. Once you are sure that you do have a Gnu C++ compiler installed, uninstall NetBeans and reinstall it. To uninstall NetBeans In Windows 7, this is Start button, Control Panel, small icons, Programs and Features, right click on NetBeans and select to remove. To uninstall NetBeans in Linux, this is “cd /path­to­netbeans­
folder/”, then “./uninstall.sh”. To uninstall NetBeans in OSX, shut down the software, then drag the program folders or files (usually in /Applications/NetBeans/) to the Trash. Once NetBeans in uninstalled, reinstall it.
4. If steps 1 and 2 do not solve the problem, email me as below or come to see me per the instructions below.
This set of FAQs will get more comprehensive as time goes on.
More help: You can email me at fdd@louisiana.edu or come to my office (Oliver Hall 215) during normal business hours during the semester (typically 9 to 5 while classes are in session provided I am not in class, in a meeting or otherwise being a systems administrator or instructor somewhere else). If you email me, include your name, clid, the operating system you are using and describe the problem you are having and the circumstances in which is occurs. 
Download