Hi gurus, wizards and newbies.
I a new Code::Blocks convert, after flirting a bit with wxDev-CPP, and being dissapointed.
I tried to configure CB for CYGWIN by following the instruction here:
http://wiki.codeblocks.org/index.php?title=Installing_Cygwin_CompilerI then tried to compile the ubiquitous "Hello World" code, and obtained an avalanche of errors ("was not decalred in this scope"... I don't think the exact errors are relevant in this post).
Looking at the Build Log, the first line reads:
g++.exe -mno-cygwin -IC:/Cygwin/usr/include -c "C:/Documents and Settings/JSeb/Mes documents/WorkSpace/FooBar2/main.cpp" -o obj/Debug/main.o
I then went to my cygwin console, and tried to compile with
g++.exe -mno-cygwin -c main.cpp -o main
Surprise surprise, it worked.
So in CB, Settings->Compiler and Debugger->Global Compiler Settings, tab Search directories->Compiler, I just erased the path C:\Cygwin\usr\include. Now the first line of the Buil Log reads:
g++.exe -mno-cygwin -c "C:/Documents and Settings/JSeb/Mes documents/WorkSpace/FooBar2/main.cpp" -o obj/Debug/main.o
And the compilation is successful.
So, what is happening here? Did I set up CB correctly to be used with Cygwin? How come explicitly specifying the search directory in the first case fails? Will I have any trouble?
Thank you kindly for your help!