Why can’t I run applications of C++ in Netbeans when I have the make, gnu,g++, gdb? Please Help!?
I have all of them and have specified their paths in the options pane of Netbeans, still, it says I need a fortran compiler. Also when I try to build a project, I get an error. Could someone tell me what I’m doing wrong or what I should do to fix it?
This link below discusses how to install c++ for all Operating Systems.
http://www.netbeans.org/kb/trails/cnd.html
I’ll assume you are using windows and this link is the one you want.
http://www.netbeans.org/community/releases/60/cpp-setup-instructions.html
In a nutshell, you need the right versions by checking them in cygwin shell. (cygwins command prompt) and adding the paths to your Environmental variables. Both procedures are below. I assume you didn’t add them to your environmental variables. Just add to your question if you need more assistance.
Check the version of Cygwin by typing:
cygcheck -c cygwin
Check the versions of the compilers, make, and gdb by typing:
gcc –version
g++ –version
make –version
gdb –version
They should be these versions or greater.
Cygwin 1.5.21
Cygwin gcc-core (C compiler) 3.4.x
Cygwin gcc-c++ (C++ compiler) 3.4.x
Cygwin gdb (GNU Debugger) 6.5.50
Cygwin make 3.80
Now add the Compiler directory to your environmental PATH:
Open the Control Panel (Start > Settings > Control Panel) and double-click the System program.
Select the Advanced tab and click Environment Variables.
In the System Variables panel of the Environment Variables dialog, select the Path variable and click Edit.
Add the path to the cygwin-directory\bin directory to the Path variable, and click OK. By default, cygwin-directory is C:\cygwin. Directory names must be separated with a semicolon.
Click OK in the Environment Variables dialog and the System Properties dialog.