

If you see that still the gcc compiler is invoked, make sure you setup the right compiler in the build options for your project AND your target (e.g. In that case this switch has to be removed.įor troubleshooting enable the "Full command line" Under menu "Settings" -> "Compiler" -> "Other" tab, "Compiler logging". > Please notice that some programs you are developing require specific unix functionality / libs that is provided only through the Cygwin layer. tab "Compiler" -> tab "Other options": add the compiler switch: -mno-cygwin.If you want to create pure (native) win32 applications that do not require the Cygwin DLL you may add the following:.tab "linker" (notice the missing "\usr" in contrast to the compiler):.tab "compiler" (notice the "\usr" in contrast to the linker):.Under the "Directories" tab make sure to adjust the include/lib path's:.Im assuming youre on Windows, based on your comments about Visual Studio if youre on a different platform, the steps for setting up GCC should be similar but not identical. (Note, The "-3" may need to be changed to "-4" in the following exe) 1,962 8 31 44 Add a comment 10 Answers Sorted by: 106 Im guessing youve installed Code::Blocks but not installed or set up GCC yet.under "Program files" setup the following for the executables:.under "Additional path" add \usr\X11R6\bin (if required).point the path to your Cygwin installation folder.Select the "GNU GCC Compiler", click the "Copy Button".Make a copy of the GNU GCC compiler as follows:.In Code::Blocks under Settings->Compiler and debugger do the following: This article describes the steps required to attach the GNU Cygwin Compiler suite. Make sure that you have installed Cygwin at least with the GCC, G++ and GDB packages.
