I\'ve just installed SDL 2 and I have some serious problems. This is my code:
#include
int main(int argc, char* argv[]){
SDL_Init( SDL_I
post the compiler commands. ex: g++/gcc ....
you are probably not linking the library.
http://content.gpwiki.org/index.php/SDL:Tutorials:Setup you should have the path to the lib, included in the ide. (I see you are using codeblocks)
add to the linker settings: -lmingw32 -lSDLmain -lSDL
http://www.sdltutorials.com/sdl-tutorial-basics