Hey there, fellow coders. C::B looks like an impressive piece of work indeed, and I look forward to many (relatively) happy late nights of programming in the future with its help.
...if I can get any external libraries working.
Okay, so I downloaded and installed C::B, MinGW Windows binaries, and SDL Windows binaries, and they're all living happily in their own lil' directories:
C:\cpp\codeblocks
C:\cpp\mingw\3.1.0
C:\cpp\sdl\SDL-1.2.9
So after having C::B auto-detect the MinGW install, I decided to go try out some of the example projects included with C::B.
The "Console Application" project works like a charm, compiling and running without a hitch.
The "SDL Application" example, on the other hand, is where I run into trouble.
A bunch of errors come up regarding main.cpp, saying "
(insert SDL-related function here) undeclared"; preceding all these is "main.cpp:6:17: SDL.h: No such file or directory", pointing of course to the "#include <SDL/SDL.h>" line.
Apparently something somewhere doesn't know where the SDL libraries are located. Well, that doesn't seem too hard to fix, or so I thought. :roll:
The thing is, I know that somehow I've got to tell the compiler and/or linker where to look for SDL, but don't really know how to accomplish this.
I've already tried putting various directories (usually C:\cpp\sdl\SDL-1.2.9\lib) in the list under Project -> Build options -> Directories -> Linker, but that isn't doing the trick.
I get the feeling I've missed something ridiculously obvious here...does anyone have an idea what that might be?
Thanks in advance.