NetBeans could't find the compiler
We are using the windows-xp
[Problem]
The compiler problem in NetBeans:
No suitable compilers were found on your system. The IDE needs a suitable set of compilers and other build tools in order to work correctly.
If you already have compilers on your system but they were not found, do one of the following:
1) Exit the IDE, add your compilers to your PATH environment variable, and restart the IDE.
2) Open the Build Tool dialog in Tools | Options | C/C++ | Build Tools and add your compiler(s) to the setup.
If you do not already have compilers on your system, do:
3) Download and install a suitable set of compilers and restart the IDE.
Visit http://netbeans.org/community/releases/69/cpp-setup-instructions.html for further assistance in installing and configuring a build environmen
[Solution]
We follow the instruction posted as <http://netbeans.org/community/releases/60/cpp-setup-instructions.html>
Your goal is to install the following 4 packages:
- 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
You will be able to find them when installing Cygwin:
-1- Download the file < Cygwin setup.exe <http://www.cygwin.com/setup.exe> > and run it
-2- Choose a workable download site page
-3- Select the necessary package -- to solve our problem, at least the following 4 should be installed. you can select the others which you like. Simply search their name, and compare the corresponding description.
Name | Description
------------------------
gcc-core | C compiler,
gcc-g++ | C++ compiler,
gdb | The GNU Debugger,
make | the GNU version of the 'make' utility.
-4- Change your enviroment parameter:
right click your computer icon -- select "properties":
a> Select the Advanced tab and click Environment Variables.
b> In the System Variables panel of the Environment Variables dialog, select the Path variable and click Edit.
c> 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.
d> Click OK in the Environment Variables dialog and the System Properties dialog.
-5- Restart your NetBeans:
To check, simply build a cc document or use the example provided (wel come) --- check the part at the bottom part of the provided link -- titled "Verifying the Installation"
Or go to "Tools" --> "Option" --> "C/C++" to manually set, it will be like the below image:Well, we've done....
--
♥ ¸¸.•*¨*•♫♪♪♫•*¨*•.¸¸♥
No comments:
Post a Comment