Quote: Original post by CoMaNdore
I had added the flag " `sdl-config --libs`" to my flag var.
But I dint know what it did before now, thanks!
I change the compiler into g++ and the stample code that I posted above worked.
Now I get unresolved error everytime I try to use a SDL function.
/tmp/ccCT7Fv9.o(.text+0x18): In function `main':
: undefined reference to `SDL_Init'
/tmp/ccCT7Fv9.o(.text+0x1d): In function `main':
: undefined reference to `SDL_Quit'
collect2: ld returned 1 exit status
make: *** [demo] Error 1
Any ideas?
Linker error? try -lSDL to the compiling.
Albert