Talk:SDL:Tutorials:Setup
From GPWikiI'm not sure how to word this into the current instructions, but gcc/g++ (at least under Linux), SDL's compile flags can be determined using sdl-config --cflags and linker flags can be determined using sdl-config --libs. So, to compile and link you can use g++ *.cpp -o game `sdl-config --cflags --libs` - sik0fewl 15:30, 10 Nov 2004 (EST) That's true, but I don't think it works under Windows, which is why I didn't include it. If you'd like to add an "Under Linux, you can do it this way..." that would be fine by me! Ryan Clark 17:17, 10 Nov 2004 (EST) The doc says you should change #include "SDL.h" to "SDL/SDL.h". That's wrong, you must leave "SDL.h" if you want your program to be portable and instead leave configure determine the correct include path.
The link to the Dev C++ devpak is porn. |


