Решил узнать что это за зверь такой - сдл. Делаю хеллоуворлд.
drull@drull-AOA150:~$ cat 1.cpp
#include <SDL/SDL.h>
const int SCREEN_WIDTH= 240;
const int SCREEN_HEIGHT= 320;
const int SCREEN_BPP= 16;
Uint16 back_color;
SDL_Surface *screen= NULL;
int main(int argc, char **argv)
{
SDL_Init(SDL_INIT_VIDEO);
screen= SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_BPP, SDL_SWSURFACE);
if(screen== NULL) printf("Unable to SetVideoMode\n");
else printf("VideoMode settings -Ok\n");
back_color= SDL_MapRGB(screen->format, 128, 0, 0);
SDL_LockSurface(screen);
SDL_FillRect (screen, NULL, back_color);
SDL_UnlockSurface(screen);
SDL_Flip(screen); // show screen
SDL_Delay(3000);
printf("Quiting SDL...\n");
SDL_FreeSurface(screen);
SDL_Quit();
return 0;
}
drull@drull-AOA150:~$ g++ -lSDL -o sdl 1.cpp
/tmp/ccXh36Nv.o: In function `main':
1.cpp:(.text+0x11): undefined reference to `SDL_Init'
1.cpp:(.text+0x35): undefined reference to `SDL_SetVideoMode'
1.cpp:(.text+0x85): undefined reference to `SDL_MapRGB'
1.cpp:(.text+0x98): undefined reference to `SDL_LockSurface'
1.cpp:(.text+0xbb): undefined reference to `SDL_FillRect'
1.cpp:(.text+0xc8): undefined reference to `SDL_UnlockSurface'
1.cpp:(.text+0xd5): undefined reference to `SDL_Flip'
1.cpp:(.text+0xe1): undefined reference to `SDL_Delay'
1.cpp:(.text+0xfa): undefined reference to `SDL_FreeSurface'
1.cpp:(.text+0xff): undefined reference to `SDL_Quit'
collect2: ld returned 1 exit status
drull@drull-AOA150:~$ g++ -o sdl 1.cpp -lSDL
drull@drull-AOA150:~$ ls -l sdl
-rwxrwxr-x 1 drull drull 7636 2012-09-18 02:00 sdl