Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Experts,
I am using Netbean IDE 6.9 to compile C++ code. I am new to this IDE. When I try to copile simple hello world application , I follow the follwoing steps:-
1)Created new sample c++ application whose project type "c++ application"
2) Add a c++ main file in which I just write hello world to be printed on screen.
3) then I click run->build main project, it pop up a window showing "Resolve missing native build tools", in which few field are missing like fortran compiler ,Make command,QMake command and CMake command. Also it disable the ok button.
Kindly help me in compling and running the simplke hello world application created in c++.
1. In the IDE, select Tools > Options and click the C/C++ button.
2. In the Build Tools tab, look at the Tool Collection list to see if your tool collection is listed.
3. Select the tool collection if it is listed, and check the paths to the tools. If the Base Directory path is incorrect, you may have made a mistake when setting your Path environment variable. Refer back to the instructions for setting your path in this document, and correct the path if necessary.
4. If the tool collection is not listed, click Restore Defaults. This will cause the IDE to rescan your environment to look for tools and the tool collection should be found if the Path environment variable is correct.
5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:
a) Click Add, below the Tool Collection list.
b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.
c) Select the directory and click Open. The IDE should be able to determine the family of the tools and update the other fields in the dialog box appropriately. If not, an error is displayed.
d) If the tools are identified correctly, click OK in the Add Tool Collection dialog box. The new collection should be displayed in the list.
e) Select the new tool collection and click Default to make sure this tool collection is used automatically for new projects.
Q: Have you considered trying the Eclipse IDE instead ?
C++ plugin is installed. But when I follow the following steps:-
1. In the IDE, select Tools > Options and click the C/C++ button.
2. In the Build Tools tab, look at the Tool Collection list to see if your tool collection is listed.
3. Select the tool collection if it is listed, and check the paths to the tools. If the Base Directory path is incorrect, you may have made a mistake when setting your Path environment variable. Refer back to the instructions for setting your path in this document, and correct the path if necessary.
4. If the tool collection is not listed, click Restore Defaults. This will cause the IDE to rescan your environment to look for tools and the tool collection should be found if the Path environment variable is correct.
5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:
a) Click Add, below the Tool Collection list.
b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.
But it display GNU in tools collection and few fields missing like fortran complier,Make command,QMake command and CMake command etc.
When I used step 4 , but it display error like "No complier sets were found in /home/user/netbeans-6.9.1/bin". How I can correct it.
result of commands:-
1)
~/netbeans-6.9.1> gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
2)
~/netbeans-6.9.1> g++ --version
g++ (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
...
5. If you are still having an issue, you can try adding a new tool collection and specify the path to the tools, as follows:
a) Click Add, below the Tool Collection list.
b) Browse to the directory that contains the executables for the compilers, debugger, and make utility. This is usually a directory named bin.
c) Select the directory and click Open. The IDE should be able to determine the family of the tools and update the other fields in the dialog box appropriately. If not, an error is displayed.
d) If the tools are identified correctly, click OK in the Add Tool Collection dialog box. The new collection should be displayed in the list.
e) Select the new tool collection and click Default to make sure this tool collection is used automatically for new projects.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.