Netbeans compiler C/C++


People,

Before beginning, I installed Netbeans 6.1 beta version portuguese.

Check before installing if there is this compilers on your machine.

  • 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

Se por acaso,  não existir os compiladores abaixe nesse site : http://cygwin.com/


  1. Download the Cygwin setup.exe program by clicking the Install or Update Now! icon in the middle of the page.
  2. Run the setup.exe program. Accept the defaults until you reach the Select Your Internet Connection page. Select the option on this page that is best for you. Click Next.
  3. On the Choose Download Site page, choose a download site you think might be relatively close to you. Click Next.
  4. On the Select Packages page you select the packages to download. Click the + next to Devel to expand the development tools category. You may want to resize the window so you can see more of it at one time.
  5. Select each package you want to download by clicking the Skip label next to it. At a minimum, select gcc-core: C compiler, gcc-g++: C++ compiler, gdb: The GNU Debugger, and make: the GNU version of the 'make' utility.
  6. Now add the Compiler directory to your path:

    1. Open the Control Panel (Start > Settings > Control Panel) and double-click the System program.
    2. Select the Advanced tab and click Environment Variables.
    3. In the System Variables panel of the Environment Variables dialog, select the Path variable and click Edit.
    4. Add the path to the cygwin-directory\\bin directory to the Path variable, and click OK. By default, cygwin-directory is C:\\cygwin\\bin. Directory names must be separated with a semicolon.
    5. Click OK in the Environment Variables dialog and the System Properties dialog.
More information Netbeans and ricardo.chikasawa@sun.com,
Comments:

sir
how to install c/c++ compiler and where will i dowload the compiler package for windows operating system
please help me

Posted by jayaraj on Julho 24, 2008 at 08:17 AM BRT #

I have a little question.
would you mind to tell me how can i add the "cygwin" compiler to the final version of NetBeans 6.1.
-- I modified the variable [Environment variable] Path and I set
C:\\cygwin;C:\\cygwin\\bin
and did not work.
Then I tried to put the compiler into the netbeans-->tools-->options-->C/C++ folder.
I tried to add the compiler but I didn't understand how to do it.

Would you mind to help me?

Thanks a lot.

Bye

Posted by Pavel on Setembro 24, 2008 at 11:18 PM BRT #

thank you

Posted by guest on Novembro 16, 2008 at 12:52 AM BRST #

ty

Posted by guest on Novembro 16, 2008 at 12:53 AM BRST #

I followed every thing in the document but still have compiler error when trying to build my first c application with main file

rm -f build/Debug/Cygwin-Windows/newmain1.o.d
gcc.exe -c -g -MMD -MP -MF build/Debug/Cygwin-Windows/newmain1.o.d -o build/Debug/Cygwin-Windows/newmain1.o newmain1.c
gcc: installation problem, cannot exec `as': No such file or directory
make[2]: \*\*\* [build/Debug/Cygwin-Windows/newmain1.o] Error 1
make[2]: Leaving directory `/cygdrive/c/Documents and Settings/enas.qawasmi/My Documents/NetBeansProjects/Application_1'
make[1]: \*\*\* [.build-conf] Error 2
make[1]: Leaving directory `/cygdrive/c/Documents and Settings/enas.qawasmi/My Documents/NetBeansProjects/Application_1'
make: \*\*\* [.build-impl] Error 2

Build failed. Exit value 2.

Posted by Enas on Fevereiro 18, 2009 at 04:02 AM BRT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Ambassador Campus Presidente Prudente, UNESP,Brazil.

Search

Archives
« Abril 2014
SegTerQuaQuiSexSábDom
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today