|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
SDL and gcc -static
SDL has been used to write procedure?
I just started to learn how to use it
Write a simple hello.c
Edited by the normal time
However, if the parameters you can not -static
There heap of errors
Is this how it all about?
----------------------------------------------------------------
LwSUSE:~/code/sdl # cc sdl_test.c -static `sdl-config --cflags --libs`
/usr/lib/libSDL.a (SDL_alsa_audio.o) : In function `UnloadALSALibrary ':
SDL_alsa_audio.o (. Text+0x2a) : undefined reference to `dlclose '
/usr/lib/libSDL.a (SDL_alsa_audio.o) : In function `LoadALSALibrary ':
SDL_alsa_audio.o (. Text+0x7e) : undefined reference to `dlopen '
SDL_alsa_audio.o (. Text+0xcf) : undefined reference to `dlvsym '
SDL_alsa_audio.o (. Text+0xf5) : undefined reference to `dlsym '
/usr/lib/libSDL.a (SDL_x11video.o) : In function `X11_Available ':
SDL_x11video.o (. Text+0x1f) : undefined reference to `XOpenDisplay '
SDL_x11video.o (. Text+0x2d) : undefined reference to `XCloseDisplay '
/usr/lib/libSDL.a (SDL_x11video.o) : In function `create_aux_windows' :
SDL_x11video.o (. Text+0x512) : undefined reference to `XCreateWindow '
SDL_x11video.o (. Text+0x53c) : undefined reference to `XSelectInput '
SDL_x11video.o (. Text+0x598) : undefined reference to `XInternAtom '
SDL_x11video.o (. Text+0x5fb) : undefined reference to `XSendEvent '
SDL_x11video.o (. Text+0x69e) : undefined reference to `XCreateWindow '
SDL_x11video.o (. Text+0x6d1) : undefined reference to `XSetWMHints'
SDL_x11video.o (. Text+0x6df) : undefined reference to `XFree '
SDL_x11video.o (. Text+0x716) : undefined reference to `XSelectInput '
SDL_x11video.o (. Text+0x71b) : undefined reference to `XAllocClassHint '
SDL_x11video.o (. Text+0x758) : undefined reference to `XSetClassHint '
SDL_x11video.o (. Text+0x760) : undefined reference to `XFree '
SDL_x11video.o (. Text+0x781) : undefined reference to `XInternAtom '
SDL_x11video.o (. Text+0x7ac) : undefined reference to `XSetWMProtocols'
SDL_x11video.o (. Text+0x7cb) : undefined reference to `XDestroyWindow '
SDL_x11video.o (. Text+0x82b) : undefined reference to `XSetWMIconName '
SDL_x11video.o (. Text+0x836) : undefined reference to `XFree '
SDL_x11video.o (. Text+0x85b) : undefined reference to `XSetWMName '
SDL_x11video.o (. Text+0x866) : undefined reference to `XFree '
SDL_x11video.o (. Text+0x87b) : undefined reference to `XGetWMHints'
SDL_x11video.o (. Text+0x8a0) : undefined reference to `XGetWMName '
SDL_x11video.o (. Text+0x8bf) : undefined reference to `XGetWMIconName '
SDL_x11video.o (. Text+0x8d7) : undefined reference to `XDestroyWindow '
SDL_x11video.o (. Text+0x8f2) : undefined reference to `XAllocWMHints'
/usr/lib/libSDL.a (SDL_x11video.o) : In function `X11_VideoInit ':
SDL_x11video.o (. Text+0x92c) : undefined reference to `XDisplayName '
SDL_x11video.o (. Text+0x950) : undefined reference to `XOpenDisplay '
SDL_x11video.o (. Text+0x973) : undefined reference to `XOpenDisplay '
....
---------------------------------------------------------------- |
| |