[SDL] SDL fullscreen problem

Alberto Luaces aluaces at udc.es
Tue Sep 4 07:40:39 PDT 2007


El Martes 04 Septiembre 2007 16:01, cocobear escribió:
> I should use #include "SDL/SDL.h",because if I use "SDL.h",the GCC
> could't find SDL.h
> My SDL.h is in /usr/include/SDL/SDL.h

No, you should use "SDL.h" only, because "sdl-config --cflags" gives

-I/usr/include/SDL

so GCC can find the header. You should then compile so:

gcc myfile.c `sdl-config --cflags` -c


More information about the SDL mailing list