sdl on ubuntu

Started by
11 comments, last by JERUKA9 4 years, 6 months ago
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
-------------------------------------------http://www.thec.org
Advertisement
Your defining the "CFLAG", while using "FLAG" in your demo rule, so you should either change the CFLAG to FLAG, or visa-versa.

This topic is closed to new replies.

Advertisement