Home > develop, unix/linux, windows > C/C++ and NetBeans

C/C++ and NetBeans

January 15th, 2009 Leave a comment Go to comments

C/C++ and NetBeans

NetBeans needs C/C++ compiler, the better option is GCC (GNU Compiler Collection).

On Win32 you can use Cygwin to get it.

On Project Properties you can change the Build options (Debug or Release), add libraries, Plataform, Package type (tar/zip/rpm,deb), Strip Symbols (reduce size of the executable)

Your executable will be on:
\NetBeansProjects\(your project)\build\(Debug or Release)\Cygwin-Windows\

Remember you application depends of cygwin1.dll ( c:\cygwin\bin\cygwin1.dll )

If you compile C files you can disable this depency using “-mno-cygwin” on CFLAGS options on your Makefile

See dependencies of you executable (using cygwin):

objdump application.exe | grep "DLL"

or use Depency Walker

Cygwin
http://www.cygwin.com/
http://www.redhat.com/services/custom/cygwin/

MinGw
http://www.mingw.org/

Interix
http://www.interopsystems.com/InteropToolworks.htm

Categories: develop, unix/linux, windows Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Switch to our mobile site