ok so i am using Dev C++ to do all my programming stuff and i decided to
try out SDL for it but i cant seem to get it to work here is what i got
1 2 3 4 5 6 7 8 9
#include <"SDL/SDL.h">
int main( int argc, char* args[] )
{
SDL_Init( SDL_INIT_EVERYTHING );
SDL_Quit();
return 0;
}
and i went through the steps and made it so the files are in their correct places but i still get this message >.<
"4 C:\Dev-Cpp\My Projects\5.cpp `SDL_INIT_EVERYTHING' undeclared (first use this function) "
and here is what i have in compilers options C++ includes "C:\SDL-1.2.14\include"
and here is what i have in my directories in the compilers options "C:\SDL-1.2.14\lib"
i even placed the SDL.dll file in the same folder as my executable.
In order for "SDL_Init()" to work you need to link against "libSDL.a". "Project -> Project Options -> Additional Command-Line Options". Also consider updating you IDE to: http://wxdsgn.sourceforge.net/
It's a lot more up to date.
EDIT: Also link against "libSDL.dll.a" and "libSDLmain.a" because you'll need those later as well.