Why isn't my SDL api working
I tried the thing that was written in Linux game programming, with asking SDL and then using the INIT_SDL_VIDEO
but when I compil, about 1 million errors coming up.
Does someon know the complet SDL initialisation that work?
Many thanks,
shun
Life is a game, sometimes you win, sometimes you lose but in the end everyone loses
Life is a game, sometimes you win, sometimes you lose but in the end everyone loses
After installing the SDL runtime and developer binaries, you can compile a program (at the command line), something like this:
gcc -Wall -o myprog myprog.c `sdl-config --libs --cflags`
In a makefile use $(shell sdl-config --cflags) and $(shell sdl-config --libs) instead.
[Resist Windows XP''s Invasive Production Activation Technology!]
gcc -Wall -o myprog myprog.c `sdl-config --libs --cflags`
In a makefile use $(shell sdl-config --cflags) and $(shell sdl-config --libs) instead.
[Resist Windows XP''s Invasive Production Activation Technology!]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement