I am responsible for the development of a multi-platform game that runs under SDL and OpenGL, and the C::B is the only decent IDE I can find that runs on all 3 platforms we are supposed to support. Because I am
LAZY, I want to be able to test the program using the gcc compiler in a windows environment (cygwin/mingw), but C::B
does not want to cooperate. I've looked around these forums and found several topics about this, but no solutions. So, I figured I would dump my wisdom in this thread.
The problem is that C::B completely ignores the following settings
- "Compiler settings"->"Other options"->`sdl-config --cflags`
- "Linker settings"->"Other linker options"->`sdl-config --libs`
and generates no error to tell you that the backquote substitution failed.
The root cause is that sdl-config is actually a script, and requires invoking a shell to interpret it. You can get the proper response by using:
- "Compiler settings"->"Other options"->`sh /usr/local/bin/sdl-config --cflags`
- "Linker settings"->"Other linker options"->`sh /usr/local/bin/sdl-config --libs`
I hope this helps.
PS I am using C::B 10.02 and a recent version of Cygwin ( as of 2011-09-07, Japanese convention
)