Hi there, I came here after searching a lot of articles/forums/tutorials on how to set up SDL 2.0( I have 2.03) in Dev-C++. I have tried all the steps provided in different tutorials over and over such as
-I have added include and lib directory in compiler options
-I have placed SDL2.dll in the folder where I have saved project file and cpp file.
-I have used this parameter in linker: -lmingw32 -lSDL2main -lSDL2
There was this code written in tutorial to check if SDL is set up correctly or not:
#include "SDL/SDL.h"
int main( int argc, char* args[] )
{
//Start SDL
SDL_Init( SDL_INIT_EVERYTHING );
//Quit SDL
SDL_Quit();
return 0;
}
And when I compile it, the following errors show up.
And even if I write code for a Hello world program, it compiles and then nothing happens.
Any help would be appreciated. I just hope this is not a wrong board to post such a question.