Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

YoshiN

How do you use SDL with GCC?

This topic is 5591 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I don''t have much linux/GCC experience, and I''m having trouble compiling a simple SDL test with the GCC. I''m typing: g++ -o test test.cpp -lSDL -lSDLmain at the commandline and I''m getting dozens of errors. test.cpp cotains the following:
  
#include<stdio.h>
#include<stdlib.h>
#include<SDL/SDL.h>

int main(int argc, char *argv[])
{
    if(SDL_Init(SDL_INIT_VIDEO) < 0)
        return(1);
    atexit(SDL_Quit);

    SDL_Surface *screen;
    screen = SDL_SetVideoMode(1024, 768, 32, SDL_SWSURFACE);
    return(0);
}
  
I''m almost 100% sure I''m just leaving something out of the commandline, but I don''t know what. Can anyone help?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
posting the errors would be helpful

Share this post


Link to post
Share on other sites
Well I didn''t want to since the number of errors could fill a book, but here they are:


/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_Available'':
SDL_x11video.lo(.text+0x1d): undefined reference to `XOpenDisplay''
SDL_x11video.lo(.text+0x2f): undefined reference to `XCloseDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `create_aux_windows'':
SDL_x11video.lo(.text+0x453): undefined reference to `XDestroyWindow''
SDL_x11video.lo(.text+0x4ff): undefined reference to `XCreateWindow''
SDL_x11video.lo(.text+0x528): undefined reference to `XSelectInput''
SDL_x11video.lo(.text+0x583): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x5da): undefined reference to `XSendEvent''
SDL_x11video.lo(.text+0x5ff): undefined reference to `XGetWMHints''
SDL_x11video.lo(.text+0x61b): undefined reference to `XGetWMName''
SDL_x11video.lo(.text+0x638): undefined reference to `XGetWMIconName''
SDL_x11video.lo(.text+0x64e): undefined reference to `XDestroyWindow''
SDL_x11video.lo(.text+0x6a0): undefined reference to `XCreateWindow''
SDL_x11video.lo(.text+0x6b7): undefined reference to `XAllocWMHints''
SDL_x11video.lo(.text+0x6dd): undefined reference to `XSetWMHints''
SDL_x11video.lo(.text+0x6e6): undefined reference to `XFree''
SDL_x11video.lo(.text+0x709): undefined reference to `XSetWMName''
SDL_x11video.lo(.text+0x715): undefined reference to `XFree''
SDL_x11video.lo(.text+0x738): undefined reference to `XSetWMIconName''
SDL_x11video.lo(.text+0x744): undefined reference to `XFree''
SDL_x11video.lo(.text+0x762): undefined reference to `XSelectInput''
SDL_x11video.lo(.text+0x767): undefined reference to `XAllocClassHint''
SDL_x11video.lo(.text+0x7a8): undefined reference to `XSetClassHint''
SDL_x11video.lo(.text+0x7b1): undefined reference to `XFree''
SDL_x11video.lo(.text+0x7cf): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x7f3): undefined reference to `XSetWMProtocols''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_VideoInit'':
SDL_x11video.lo(.text+0x82e): undefined reference to `XDisplayName''
SDL_x11video.lo(.text+0x854): undefined reference to `XDisplayName''
SDL_x11video.lo(.text+0x895): undefined reference to `XOpenDisplay''
SDL_x11video.lo(.text+0x8bc): undefined reference to `XOpenDisplay''
SDL_x11video.lo(.text+0x901): undefined reference to `XSetErrorHandler''
SDL_x11video.lo(.text+0x916): undefined reference to `XSetIOErrorHandler''
SDL_x11video.lo(.text+0x946): undefined reference to `XShmQueryExtension''
SDL_x11video.lo(.text+0xa90): undefined reference to `XCreateColormap''
SDL_x11video.lo(.text+0xb87): undefined reference to `XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_DestroyWindow'':
SDL_x11video.lo(.text+0xbe9): undefined reference to `XUnmapWindow''
SDL_x11video.lo(.text+0xc23): undefined reference to `XDestroyWindow''
SDL_x11video.lo(.text+0xc7d): undefined reference to `XFreeColors''
SDL_x11video.lo(.text+0xcf8): undefined reference to `XFreeGC''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_SetSizeHints'':
SDL_x11video.lo(.text+0xe38): undefined reference to `XAllocSizeHints''
SDL_x11video.lo(.text+0xede): undefined reference to `XMoveWindow''
SDL_x11video.lo(.text+0xef5): undefined reference to `XSync''
SDL_x11video.lo(.text+0xf12): undefined reference to `XSetWMNormalHints''
SDL_x11video.lo(.text+0xf1b): undefined reference to `XFree''
SDL_x11video.lo(.text+0xf49): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0xf86): undefined reference to `XChangeProperty''
SDL_x11video.lo(.text+0xfac): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0xfde): undefined reference to `XChangeProperty''
SDL_x11video.lo(.text+0x1004): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x1036): undefined reference to `XChangeProperty''
SDL_x11video.lo(.text+0x1079): undefined reference to `XSetTransientForHint''
SDL_x11video.lo(.text+0x109e): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x10bf): undefined reference to `XDeleteProperty''
SDL_x11video.lo(.text+0x10e5): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x1106): undefined reference to `XDeleteProperty''
SDL_x11video.lo(.text+0x112c): undefined reference to `XInternAtom''
SDL_x11video.lo(.text+0x114d): undefined reference to `XDeleteProperty''
SDL_x11video.lo(.text+0x1174): undefined reference to `XSetTransientForHint''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_CreateWindow'':
SDL_x11video.lo(.text+0x1242): undefined reference to `XGetWindowAttributes''
SDL_x11video.lo(.text+0x1326): undefined reference to `XFreeColormap''
SDL_x11video.lo(.text+0x1408): undefined reference to `XCreateColormap''
SDL_x11video.lo(.text+0x1484): undefined reference to `XCreateColormap''
SDL_x11video.lo(.text+0x14a6): undefined reference to `XSync''
SDL_x11video.lo(.text+0x1508): undefined reference to `XCreateColormap''
SDL_x11video.lo(.text+0x154f): undefined reference to `XSetWindowBackground''
SDL_x11video.lo(.text+0x1565): undefined reference to `XClearWindow''
SDL_x11video.lo(.text+0x15b4): undefined reference to `XResizeWindow''
SDL_x11video.lo(.text+0x1640): undefined reference to `XCreateWindow''
SDL_x11video.lo(.text+0x1669): undefined reference to `XSelectInput''
SDL_x11video.lo(.text+0x16ba): undefined reference to `XCreateGC''
SDL_x11video.lo(.text+0x1712): undefined reference to `XSetWindowColormap''
SDL_x11video.lo(.text+0x1738): undefined reference to `XSetWindowColormap''
SDL_x11video.lo(.text+0x1755): undefined reference to `XSetWindowColormap''
SDL_x11video.lo(.text+0x1796): undefined reference to `XChangeWindowAttributes''
SDL_x11video.lo(.text+0x183c): undefined reference to `XMapWindow''
SDL_x11video.lo(.text+0x1852): undefined reference to `XMapWindow''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_ResizeWindow'':
SDL_x11video.lo(.text+0x190c): undefined reference to `XResizeWindow''
SDL_x11video.lo(.text+0x1972): undefined reference to `XResizeWindow''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_SetVideoMode'':
SDL_x11video.lo(.text+0x19d3): undefined reference to `XSync''
SDL_x11video.lo(.text+0x1aa6): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_UpdateMouse'':
SDL_x11video.lo(.text+0x1baa): undefined reference to `XQueryPointer''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `allocate_nearest'':
SDL_x11video.lo(.text+0x1c88): undefined reference to `XQueryColors''
SDL_x11video.lo(.text+0x1e09): undefined reference to `XAllocColor''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_SetColors'':
SDL_x11video.lo(.text+0x1f4f): undefined reference to `XStoreColors''
SDL_x11video.lo(.text+0x1f66): undefined reference to `XSync''
SDL_x11video.lo(.text+0x2016): undefined reference to `XFreeColors''
SDL_x11video.lo(.text+0x20ac): undefined reference to `XAllocColor''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_SetGammaRamp'':
SDL_x11video.lo(.text+0x2266): undefined reference to `XStoreColors''
SDL_x11video.lo(.text+0x227d): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11video.lo): In function `X11_VideoQuit'':
SDL_x11video.lo(.text+0x22c5): undefined reference to `XSync''
SDL_x11video.lo(.text+0x2315): undefined reference to `XFreeColormap''
SDL_x11video.lo(.text+0x2377): undefined reference to `XFreeColors''
SDL_x11video.lo(.text+0x2432): undefined reference to `XCloseDisplay''
SDL_x11video.lo(.text+0x2454): undefined reference to `XCloseDisplay''
SDL_x11video.lo(.text+0x2477): undefined reference to `XSetIOErrorHandler''
SDL_x11video.lo(.text+0x248d): undefined reference to `XSetErrorHandler''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11wm.lo): In function `X11_SetIcon'':
SDL_x11wm.lo(.text+0x2fd): undefined reference to `XFreeColors''
SDL_x11wm.lo(.text+0x3f1): undefined reference to `XAllocColor''
SDL_x11wm.lo(.text+0x4a3): undefined reference to `XQueryColors''
SDL_x11wm.lo(.text+0x531): undefined reference to `XAllocColor''
SDL_x11wm.lo(.text+0x69e): undefined reference to `XCreatePixmapFromBitmapData''
SDL_x11wm.lo(.text+0x704): undefined reference to `XCreateImage''
SDL_x11wm.lo(.text+0x767): undefined reference to `XCreatePixmap''
SDL_x11wm.lo(.text+0x78e): undefined reference to `XCreateGC''
SDL_x11wm.lo(.text+0x7c4): undefined reference to `XPutImage''
SDL_x11wm.lo(.text+0x7dd): undefined reference to `XFreeGC''
SDL_x11wm.lo(.text+0x865): undefined reference to `XCreateSimpleWindow''
SDL_x11wm.lo(.text+0x88d): undefined reference to `XSetWindowBackgroundPixmap''
SDL_x11wm.lo(.text+0x8a0): undefined reference to `XClearWindow''
SDL_x11wm.lo(.text+0x8a8): undefined reference to `XAllocWMHints''
SDL_x11wm.lo(.text+0x8f4): undefined reference to `XSetWMHints''
SDL_x11wm.lo(.text+0x8fd): undefined reference to `XFree''
SDL_x11wm.lo(.text+0x914): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11wm.lo): In function `X11_SetCaption'':
SDL_x11wm.lo(.text+0x970): undefined reference to `XStringListToTextProperty''
SDL_x11wm.lo(.text+0x987): undefined reference to `XSetWMName''
SDL_x11wm.lo(.text+0x996): undefined reference to `XFree''
SDL_x11wm.lo(.text+0x9b1): undefined reference to `XStringListToTextProperty''
SDL_x11wm.lo(.text+0x9c8): undefined reference to `XSetWMIconName''
SDL_x11wm.lo(.text+0x9d7): undefined reference to `XFree''
SDL_x11wm.lo(.text+0x9ee): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11wm.lo): In function `X11_IconifyWindow'':
SDL_x11wm.lo(.text+0xa40): undefined reference to `XIconifyWindow''
SDL_x11wm.lo(.text+0xa56): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11wm.lo): In function `X11_GrabInputNoLock'':
SDL_x11wm.lo(.text+0xabe): undefined reference to `XUngrabPointer''
SDL_x11wm.lo(.text+0xad2): undefined reference to `XUngrabKeyboard''
SDL_x11wm.lo(.text+0xaef): undefined reference to `XUngrabPointer''
SDL_x11wm.lo(.text+0xb24): undefined reference to `XGrabPointer''
SDL_x11wm.lo(.text+0xb49): undefined reference to `XGrabKeyboard''
SDL_x11wm.lo(.text+0xb6d): undefined reference to `XRaiseWindow''
SDL_x11wm.lo(.text+0xb93): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11wm.lo): In function `unlock_display'':
SDL_x11wm.lo(.text+0xc32): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11yuv.lo): In function `X11_CreateYUVOverlay'':
SDL_x11yuv.lo(.text+0x234): undefined reference to `XFree''
SDL_x11yuv.lo(.text+0x3fd): undefined reference to `XFree''
SDL_x11yuv.lo(.text+0x4af): undefined reference to `XShmAttach''
SDL_x11yuv.lo(.text+0x4c9): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11yuv.lo): In function `X11_DisplayYUVOverlay'':
SDL_x11yuv.lo(.text+0x615): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11yuv.lo): In function `X11_FreeYUVOverlay'':
SDL_x11yuv.lo(.text+0x682): undefined reference to `XShmDetach''
SDL_x11yuv.lo(.text+0x6a1): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `xv_close_display'':
Xv.lo(.text+0x25): undefined reference to `XextRemoveDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `xv_find_display'':
Xv.lo(.text+0x54): undefined reference to `XextCreateExtension''
Xv.lo(.text+0x72): undefined reference to `XextFindDisplay''
Xv.lo(.text+0x9b): undefined reference to `XextAddDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `xv_error_string'':
Xv.lo(.text+0x112): undefined reference to `XGetErrorDatabaseText''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvQueryExtension'':
Xv.lo(.text+0x167): undefined reference to `XMissingExtension''
Xv.lo(.text+0x185): undefined reference to `_XFlush''
Xv.lo(.text+0x1b5): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvQueryAdaptors'':
Xv.lo(.text+0x25e): undefined reference to `XMissingExtension''
Xv.lo(.text+0x283): undefined reference to `_XFlush''
Xv.lo(.text+0x2c2): undefined reference to `_XReply''
Xv.lo(.text+0x320): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvQueryEncodings'':
Xv.lo(.text+0x5ca): undefined reference to `XMissingExtension''
Xv.lo(.text+0x5eb): undefined reference to `_XFlush''
Xv.lo(.text+0x62a): undefined reference to `_XReply''
Xv.lo(.text+0x684): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvPutVideo'':
Xv.lo(.text+0x88b): undefined reference to `XMissingExtension''
Xv.lo(.text+0x8af): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0x8c6): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvPutStill'':
Xv.lo(.text+0x993): undefined reference to `XMissingExtension''
Xv.lo(.text+0x9b0): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0x9c7): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvGetVideo'':
Xv.lo(.text+0xa93): undefined reference to `XMissingExtension''
Xv.lo(.text+0xab0): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0xac7): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvGetStill'':
Xv.lo(.text+0xb93): undefined reference to `XMissingExtension''
Xv.lo(.text+0xbb0): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0xbc7): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvStopVideo'':
Xv.lo(.text+0xc93): undefined reference to `XMissingExtension''
Xv.lo(.text+0xcb0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvGrabPort'':
Xv.lo(.text+0xd3b): undefined reference to `XMissingExtension''
Xv.lo(.text+0xd56): undefined reference to `_XFlush''
Xv.lo(.text+0xd92): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvUngrabPort'':
Xv.lo(.text+0xdff): undefined reference to `XMissingExtension''
Xv.lo(.text+0xe20): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvSelectVideoNotify'':
Xv.lo(.text+0xeab): undefined reference to `XMissingExtension''
Xv.lo(.text+0xec6): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvSelectPortNotify'':
Xv.lo(.text+0xf53): undefined reference to `XMissingExtension''
Xv.lo(.text+0xf70): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvSetPortAttribute'':
Xv.lo(.text+0xffb): undefined reference to `XMissingExtension''
Xv.lo(.text+0x1016): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvGetPortAttribute'':
Xv.lo(.text+0x10a7): undefined reference to `XMissingExtension''
Xv.lo(.text+0x10c5): undefined reference to `_XFlush''
Xv.lo(.text+0x1101): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvQueryBestSize'':
Xv.lo(.text+0x1183): undefined reference to `XMissingExtension''
Xv.lo(.text+0x11a1): undefined reference to `_XFlush''
Xv.lo(.text+0x11f9): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvQueryPortAttributes'':
Xv.lo(.text+0x1296): undefined reference to `XMissingExtension''
Xv.lo(.text+0x12b4): undefined reference to `_XFlush''
Xv.lo(.text+0x12f3): undefined reference to `_XReply''
Xv.lo(.text+0x1361): undefined reference to `_XRead''
Xv.lo(.text+0x138d): undefined reference to `_XRead''
Xv.lo(.text+0x13bf): undefined reference to `_XEatData''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvListImageFormats'':
Xv.lo(.text+0x143c): undefined reference to `XMissingExtension''
Xv.lo(.text+0x145a): undefined reference to `_XFlush''
Xv.lo(.text+0x1496): undefined reference to `_XReply''
Xv.lo(.text+0x1526): undefined reference to `_XRead''
Xv.lo(.text+0x1635): undefined reference to `_XEatData''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvCreateImage'':
Xv.lo(.text+0x169f): undefined reference to `XMissingExtension''
Xv.lo(.text+0x16c0): undefined reference to `_XFlush''
Xv.lo(.text+0x170a): undefined reference to `_XReply''
Xv.lo(.text+0x178f): undefined reference to `_XRead''
Xv.lo(.text+0x17a3): undefined reference to `_XRead''
Xv.lo(.text+0x17bc): undefined reference to `_XEatData''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvPutImage'':
Xv.lo(.text+0x186e): undefined reference to `XMissingExtension''
Xv.lo(.text+0x1892): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0x18ac): undefined reference to `_XFlush''
Xv.lo(.text+0x19be): undefined reference to `_XSend''
Xv.lo(.text+0x1a20): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `SDL_XvShmPutImage'':
Xv.lo(.text+0x1a8c): undefined reference to `XMissingExtension''
Xv.lo(.text+0x1aaf): undefined reference to `_XFlushGCCache''
Xv.lo(.text+0x1ac6): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xv.lo): In function `xv_wire_to_event'':
Xv.lo(.text+0x1bcb): undefined reference to `XMissingExtension''
Xv.lo(.text+0x1bfb): undefined reference to `_XSetLastRequestRead''
Xv.lo(.text+0x1c3b): undefined reference to `_XSetLastRequestRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_Available'':
SDL_dgavideo.lo(.text+0x31): undefined reference to `XDisplayName''
SDL_dgavideo.lo(.text+0x57): undefined reference to `XDisplayName''
SDL_dgavideo.lo(.text+0x71): undefined reference to `XOpenDisplay''
SDL_dgavideo.lo(.text+0xe4): undefined reference to `XCloseDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_VideoInit'':
SDL_dgavideo.lo(.text+0x5da): undefined reference to `XOpenDisplay''
SDL_dgavideo.lo(.text+0x66c): undefined reference to `XCloseDisplay''
SDL_dgavideo.lo(.text+0x69a): undefined reference to `XCloseDisplay''
SDL_dgavideo.lo(.text+0x6f1): undefined reference to `XListPixmapFormats''
SDL_dgavideo.lo(.text+0x71d): undefined reference to `XCloseDisplay''
SDL_dgavideo.lo(.text+0x764): undefined reference to `XFree''
SDL_dgavideo.lo(.text+0x7cc): undefined reference to `XCloseDisplay''
SDL_dgavideo.lo(.text+0x872): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_SetVideoMode'':
SDL_dgavideo.lo(.text+0x933): undefined reference to `XFreeColormap''
SDL_dgavideo.lo(.text+0xa0f): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_FillHWRect'':
SDL_dgavideo.lo(.text+0x1179): undefined reference to `XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `HWAccelBlit'':
SDL_dgavideo.lo(.text+0x131c): undefined reference to `XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_FlipHWSurface'':
SDL_dgavideo.lo(.text+0x1647): undefined reference to `XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_SetColors'':
SDL_dgavideo.lo(.text+0x1774): undefined reference to `XStoreColors''
SDL_dgavideo.lo(.text+0x178d): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_SetGammaRamp'':
SDL_dgavideo.lo(.text+0x18ef): undefined reference to `XStoreColors''
SDL_dgavideo.lo(.text+0x1908): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgavideo.lo): In function `DGA_VideoQuit'':
SDL_dgavideo.lo(.text+0x1969): undefined reference to `XFreeColormap''
SDL_dgavideo.lo(.text+0x1af3): undefined reference to `XCloseDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_systhread.lo): In function `SDL_SYS_CreateThread'':
SDL_systhread.lo(.text+0x80): undefined reference to `pthread_create''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_systhread.lo): In function `SDL_SYS_SetupThread'':
SDL_systhread.lo(.text+0x139): undefined reference to `pthread_sigmask''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_systhread.lo): In function `SDL_SYS_WaitThread'':
SDL_systhread.lo(.text+0x19f): undefined reference to `pthread_join''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_systhread.lo): In function `SDL_SYS_KillThread'':
SDL_systhread.lo(.text+0x1cd): undefined reference to `pthread_cancel''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_sysmutex.lo): In function `SDL_CreateMutex'':
SDL_sysmutex.lo(.text+0x35): undefined reference to `pthread_mutexattr_init''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_CreateSemaphore'':
SDL_syssem.lo(.text+0x39): undefined reference to `sem_init''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_DestroySemaphore'':
SDL_syssem.lo(.text+0xa1): undefined reference to `sem_destroy''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_SemTryWait'':
SDL_syssem.lo(.text+0xdc): undefined reference to `sem_trywait''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_SemWait'':
SDL_syssem.lo(.text+0x147): undefined reference to `sem_wait''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_SemValue'':
SDL_syssem.lo(.text+0x247): undefined reference to `sem_getvalue''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_syssem.lo): In function `SDL_SemPost'':
SDL_syssem.lo(.text+0x29f): undefined reference to `sem_post''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_loadso.o): In function `SDL_LoadObject'':
SDL_loadso.o(.text+0x12): undefined reference to `dlopen''
SDL_loadso.o(.text+0x19): undefined reference to `dlerror''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_loadso.o): In function `SDL_LoadFunction'':
SDL_loadso.o(.text+0x54): undefined reference to `dlsym''
SDL_loadso.o(.text+0x62): undefined reference to `dlerror''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_loadso.o): In function `SDL_UnloadObject'':
SDL_loadso.o(.text+0x92): undefined reference to `dlclose''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_KeyRepeat'':
SDL_x11events.lo(.text+0x27): undefined reference to `XPending''
SDL_x11events.lo(.text+0x3b): undefined reference to `XPeekEvent''
SDL_x11events.lo(.text+0x6f): undefined reference to `XNextEvent''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_DispatchEvent'':
SDL_x11events.lo(.text+0xb0): undefined reference to `XNextEvent''
SDL_x11events.lo(.text+0x3df): undefined reference to `XCheckTypedEvent''
SDL_x11events.lo(.text+0x453): undefined reference to `XWarpPointer''
SDL_x11events.lo(.text+0x477): undefined reference to `XMaskEvent''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_Pending'':
SDL_x11events.lo(.text+0x76f): undefined reference to `XFlush''
SDL_x11events.lo(.text+0x77d): undefined reference to `XEventsQueued''
SDL_x11events.lo(.text+0x7e8): undefined reference to `XPending''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_TranslateKey'':
SDL_x11events.lo(.text+0xcc8): undefined reference to `XKeycodeToKeysym''
SDL_x11events.lo(.text+0xded): undefined reference to `XLookupString''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `get_modifier_masks'':
SDL_x11events.lo(.text+0xe39): undefined reference to `XGetModifierMapping''
SDL_x11events.lo(.text+0xe8f): undefined reference to `XKeycodeToKeysym''
SDL_x11events.lo(.text+0xf17): undefined reference to `XFreeModifiermap''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_KeyToUnicode'':
SDL_x11events.lo(.text+0x1038): undefined reference to `XKeysymToKeycode''
SDL_x11events.lo(.text+0x10e7): undefined reference to `XLookupString''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11events.lo): In function `X11_SetKeyboardState'':
SDL_x11events.lo(.text+0x1144): undefined reference to `XQueryKeymap''
SDL_x11events.lo(.text+0x119a): undefined reference to `XQueryPointer''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gamma.lo): In function `X11_SetGammaNoLock'':
SDL_x11gamma.lo(.text+0x123): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_GetVisual'':
SDL_x11gl.lo(.text+0x63): undefined reference to `XGetWindowAttributes''
SDL_x11gl.lo(.text+0x8a): undefined reference to `XVisualIDFromVisual''
SDL_x11gl.lo(.text+0xb5): undefined reference to `XGetVisualInfo''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_CreateWindow'':
SDL_x11gl.lo(.text+0x37f): undefined reference to `XCreateWindow''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_CreateContext'':
SDL_x11gl.lo(.text+0x3ee): undefined reference to `XSync''
SDL_x11gl.lo(.text+0x42d): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_MakeCurrent'':
SDL_x11gl.lo(.text+0x58f): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_UnloadLibrary'':
SDL_x11gl.lo(.text+0x72a): undefined reference to `dlclose''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo): In function `X11_GL_LoadLibrary'':
SDL_x11gl.lo(.text+0x7dd): undefined reference to `dlopen''
SDL_x11gl.lo(.text+0x7ef): undefined reference to `dlsym''
SDL_x11gl.lo(.text+0x805): undefined reference to `dlclose''
SDL_x11gl.lo(.text+0x838): undefined reference to `dlopen''
SDL_x11gl.lo(.text+0x86b): undefined reference to `dlsym''
SDL_x11gl.lo(.text+0x886): undefined reference to `dlsym''
SDL_x11gl.lo(.text+0x8a4): undefined reference to `dlsym''
SDL_x11gl.lo(.text+0x8c2): undefined reference to `dlsym''
SDL_x11gl.lo(.text+0x8dd): undefined reference to `dlsym''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11gl.lo)(.text+0x8fb): more undefined references to `dlsym'' follow
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `try_mitshm'':
SDL_x11image.lo(.text+0xf8): undefined reference to `XSetErrorHandler''
SDL_x11image.lo(.text+0x114): undefined reference to `XShmAttach''
SDL_x11image.lo(.text+0x12b): undefined reference to `XSync''
SDL_x11image.lo(.text+0x13a): undefined reference to `XSetErrorHandler''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_SetupImage'':
SDL_x11image.lo(.text+0x220): undefined reference to `XShmCreateImage''
SDL_x11image.lo(.text+0x24a): undefined reference to `XShmDetach''
SDL_x11image.lo(.text+0x25e): undefined reference to `XSync''
SDL_x11image.lo(.text+0x2fd): undefined reference to `XCreateImage''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_DestroyImage'':
SDL_x11image.lo(.text+0x3af): undefined reference to `XShmDetach''
SDL_x11image.lo(.text+0x3c3): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_LockHWSurface'':
SDL_x11image.lo(.text+0x5a2): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_NormalUpdate'':
SDL_x11image.lo(.text+0x647): undefined reference to `XPutImage''
SDL_x11image.lo(.text+0x678): undefined reference to `XFlush''
SDL_x11image.lo(.text+0x6a4): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_MITSHMUpdate'':
SDL_x11image.lo(.text+0x721): undefined reference to `XShmPutImage''
SDL_x11image.lo(.text+0x752): undefined reference to `XFlush''
SDL_x11image.lo(.text+0x783): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11image.lo): In function `X11_RefreshDisplay'':
SDL_x11image.lo(.text+0x847): undefined reference to `XShmPutImage''
SDL_x11image.lo(.text+0x87a): undefined reference to `XPutImage''
SDL_x11image.lo(.text+0x891): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `set_best_resolution'':
SDL_x11modes.lo(.text+0x2d1): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_WaitMapped'':
SDL_x11modes.lo(.text+0x3c7): undefined reference to `XMaskEvent''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_WaitUnmapped'':
SDL_x11modes.lo(.text+0x419): undefined reference to `XMaskEvent''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `move_cursor_to'':
SDL_x11modes.lo(.text+0x48b): undefined reference to `XWarpPointer''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `add_visual'':
SDL_x11modes.lo(.text+0x4d6): undefined reference to `XMatchVisualInfo''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `add_visual_byid'':
SDL_x11modes.lo(.text+0x585): undefined reference to `XGetVisualInfo''
SDL_x11modes.lo(.text+0x5ca): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_GetVideoModes'':
SDL_x11modes.lo(.text+0x943): undefined reference to `XFree''
SDL_x11modes.lo(.text+0xa8c): undefined reference to `XListPixmapFormats''
SDL_x11modes.lo(.text+0xb3c): undefined reference to `XFree''
SDL_x11modes.lo(.text+0xcdc): undefined reference to `XFree''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_ResizeFullScreen'':
SDL_x11modes.lo(.text+0xefe): undefined reference to `XMoveResizeWindow''
SDL_x11modes.lo(.text+0xf64): undefined reference to `XReparentWindow''
SDL_x11modes.lo(.text+0xf7b): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_EnterFullScreen'':
SDL_x11modes.lo(.text+0x10b0): undefined reference to `XMoveResizeWindow''
SDL_x11modes.lo(.text+0x10c9): undefined reference to `XMapRaised''
SDL_x11modes.lo(.text+0x10f5): undefined reference to `XRaiseWindow''
SDL_x11modes.lo(.text+0x116d): undefined reference to `XInstallColormap''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11modes.lo): In function `X11_LeaveFullScreen'':
SDL_x11modes.lo(.text+0x11f9): undefined reference to `XReparentWindow''
SDL_x11modes.lo(.text+0x124b): undefined reference to `XUnmapWindow''
SDL_x11modes.lo(.text+0x1275): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `X11_FreeWMCursor'':
SDL_x11mouse.lo(.text+0x40): undefined reference to `XFreeCursor''
SDL_x11mouse.lo(.text+0x54): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `X11_CreateWMCursor'':
SDL_x11mouse.lo(.text+0x1a7): undefined reference to `XCreateImage''
SDL_x11mouse.lo(.text+0x1f4): undefined reference to `XCreatePixmap''
SDL_x11mouse.lo(.text+0x23e): undefined reference to `XCreateImage''
SDL_x11mouse.lo(.text+0x28a): undefined reference to `XCreatePixmap''
SDL_x11mouse.lo(.text+0x2c8): undefined reference to `XCreateGC''
SDL_x11mouse.lo(.text+0x2f8): undefined reference to `XPutImage''
SDL_x11mouse.lo(.text+0x326): undefined reference to `XPutImage''
SDL_x11mouse.lo(.text+0x33f): undefined reference to `XFreeGC''
SDL_x11mouse.lo(.text+0x384): undefined reference to `XCreatePixmapCursor''
SDL_x11mouse.lo(.text+0x3a0): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `X11_ShowWMCursor'':
SDL_x11mouse.lo(.text+0x429): undefined reference to `XDefineCursor''
SDL_x11mouse.lo(.text+0x440): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `X11_WarpWMCursor'':
SDL_x11mouse.lo(.text+0x4fd): undefined reference to `XWarpPointer''
SDL_x11mouse.lo(.text+0x514): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `SetMouseAccel'':
SDL_x11mouse.lo(.text+0x62c): undefined reference to `XChangePointerControl''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_x11mouse.lo): In function `X11_CheckMouseModeNoLock'':
SDL_x11mouse.lo(.text+0x714): undefined reference to `XGetPointerControl''
SDL_x11mouse.lo(.text+0x788): undefined reference to `XChangePointerControl''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `find_display'':
XF86VMode.lo(.text+0x24): undefined reference to `XextCreateExtension''
XF86VMode.lo(.text+0x42): undefined reference to `XextFindDisplay''
XF86VMode.lo(.text+0x6b): undefined reference to `XextAddDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `close_display'':
XF86VMode.lo(.text+0x9d): undefined reference to `XextRemoveDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeQueryVersion'':
XF86VMode.lo(.text+0x13b): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x156): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x189): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSetClientVersion'':
XF86VMode.lo(.text+0x227): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x240): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSetGamma'':
XF86VMode.lo(.text+0x2d3): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x2f0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetGamma'':
XF86VMode.lo(.text+0x3ff): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x420): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x45a): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetModeLine'':
XF86VMode.lo(.text+0x51b): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x54a): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x591): undefined reference to `_XReply''
XF86VMode.lo(.text+0x610): undefined reference to `_XReply''
XF86VMode.lo(.text+0x6b1): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x6d3): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetAllModeLines'':
XF86VMode.lo(.text+0x750): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x79a): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x7d4): undefined reference to `_XReply''
XF86VMode.lo(.text+0x83f): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x896): undefined reference to `_XRead''
XF86VMode.lo(.text+0x963): undefined reference to `_XRead''
XF86VMode.lo(.text+0xa0f): undefined reference to `_XEatData''
XF86VMode.lo(.text+0xa38): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeAddModeLine'':
XF86VMode.lo(.text+0xac7): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0xb00): undefined reference to `_XFlush''
XF86VMode.lo(.text+0xc71): undefined reference to `_XFlush''
XF86VMode.lo(.text+0xdea): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeDeleteModeLine'':
XF86VMode.lo(.text+0xe53): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0xe8e): undefined reference to `_XFlush''
XF86VMode.lo(.text+0xf64): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x1031): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeModModeLine'':
XF86VMode.lo(.text+0x1097): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x10d0): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x11a0): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x126a): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeValidateModeLine'':
XF86VMode.lo(.text+0x12d3): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x130e): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x13e4): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x14b1): undefined reference to `_XSend''
XF86VMode.lo(.text+0x14c2): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSwitchMode'':
XF86VMode.lo(.text+0x153b): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1553): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSwitchToMode'':
XF86VMode.lo(.text+0x15f2): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1641): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x1730): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x180c): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeLockModeSwitch'':
XF86VMode.lo(.text+0x186f): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1887): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetMonitor'':
XF86VMode.lo(.text+0x1921): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1943): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x1983): undefined reference to `_XReply''
XF86VMode.lo(.text+0x19f5): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x1a50): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x1aaa): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x1b23): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x1b76): undefined reference to `_XRead''
XF86VMode.lo(.text+0x1bd1): undefined reference to `_XRead''
XF86VMode.lo(.text+0x1c2c): undefined reference to `_XReadPad''
XF86VMode.lo(.text+0x1c54): undefined reference to `_XReadPad''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetViewPort'':
XF86VMode.lo(.text+0x1cce): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1d17): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x1d6b): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSetViewPort'':
XF86VMode.lo(.text+0x1dfb): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1e13): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetDotClocks'':
XF86VMode.lo(.text+0x1eae): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x1ed3): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x1f13): undefined reference to `_XReply''
XF86VMode.lo(.text+0x1f6b): undefined reference to `_XEatData''
XF86VMode.lo(.text+0x1f9e): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeSetGammaRamp'':
XF86VMode.lo(.text+0x201f): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x2040): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x2093): undefined reference to `_XSend''
XF86VMode.lo(.text+0x20a1): undefined reference to `_XSend''
XF86VMode.lo(.text+0x20b2): undefined reference to `_XSend''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetGammaRamp'':
XF86VMode.lo(.text+0x2117): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x2132): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x2173): undefined reference to `_XReply''
XF86VMode.lo(.text+0x21a7): undefined reference to `_XRead''
XF86VMode.lo(.text+0x21bb): undefined reference to `_XRead''
XF86VMode.lo(.text+0x21d2): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86VMode.lo): In function `SDL_XF86VidModeGetGammaRampSize'':
XF86VMode.lo(.text+0x2240): undefined reference to `XMissingExtension''
XF86VMode.lo(.text+0x2260): undefined reference to `_XFlush''
XF86VMode.lo(.text+0x229a): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `xdga_close_display'':
XF86DGA2.lo(.text+0x25): undefined reference to `XextRemoveDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_xdga_find_display'':
XF86DGA2.lo(.text+0x54): undefined reference to `XextCreateExtension''
XF86DGA2.lo(.text+0x72): undefined reference to `XextFindDisplay''
XF86DGA2.lo(.text+0x9b): undefined reference to `XextAddDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `xdga_wire_to_event'':
XF86DGA2.lo(.text+0xfd): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x154): undefined reference to `_XSetLastRequestRead''
XF86DGA2.lo(.text+0x1a0): undefined reference to `_XSetLastRequestRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAQueryVersion'':
XF86DGA2.lo(.text+0x271): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x290): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x2c3): undefined reference to `_XReply''
XF86DGA2.lo(.text+0x33a): undefined reference to `XESetWireToEvent''
XF86DGA2.lo(.text+0x348): undefined reference to `XESetEventToWire''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGASetClientVersion'':
XF86DGA2.lo(.text+0x3b1): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x3d0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAOpenFramebuffer'':
XF86DGA2.lo(.text+0x46c): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x487): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x4c0): undefined reference to `_XReply''
XF86DGA2.lo(.text+0x506): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGACloseFramebuffer'':
XF86DGA2.lo(.text+0x5a1): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x5c6): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAQueryModes'':
XF86DGA2.lo(.text+0x663): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x683): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x6bf): undefined reference to `_XReply''
XF86DGA2.lo(.text+0x73e): undefined reference to `_XRead''
XF86DGA2.lo(.text+0x807): undefined reference to `_XRead''
XF86DGA2.lo(.text+0x842): undefined reference to `_XEatData''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGASetMode'':
XF86DGA2.lo(.text+0x8b6): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x8d4): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x92e): undefined reference to `_XReply''
XF86DGA2.lo(.text+0x973): undefined reference to `_XRead''
XF86DGA2.lo(.text+0xa45): undefined reference to `_XRead''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGASetViewport'':
XF86DGA2.lo(.text+0xad9): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xaf0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAInstallColormap'':
XF86DGA2.lo(.text+0xb8d): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xba3): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGASelectInput'':
XF86DGA2.lo(.text+0xc31): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xc47): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAFillRectangle'':
XF86DGA2.lo(.text+0xcd5): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xcf0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGACopyArea'':
XF86DGA2.lo(.text+0xd99): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xdb0): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGACopyTransparentArea'':
XF86DGA2.lo(.text+0xe61): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xe77): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAGetViewportStatus'':
XF86DGA2.lo(.text+0xf38): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0xf50): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0xf89): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGASync'':
XF86DGA2.lo(.text+0xff5): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x1010): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x1049): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGAChangePixmapMode'':
XF86DGA2.lo(.text+0x10a9): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x10c2): undefined reference to `_XFlush''
XF86DGA2.lo(.text+0x1115): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA2.lo): In function `SDL_XDGACreateColormap'':
XF86DGA2.lo(.text+0x118a): undefined reference to `XMissingExtension''
XF86DGA2.lo(.text+0x11a5): undefined reference to `_XFlush''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAGetVideoLL'':
XF86DGA.lo(.text+0xa9): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0xc4): undefined reference to `_XFlush''
XF86DGA.lo(.text+0xfe): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGADirectVideoLL'':
XF86DGA.lo(.text+0x195): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x1b0): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x1fe): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAGetViewPortSize'':
XF86DGA.lo(.text+0x255): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x270): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x2aa): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGASetViewPort'':
XF86DGA.lo(.text+0x331): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x350): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x3a3): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAGetVidPage'':
XF86DGA.lo(.text+0x3f9): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x411): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x44b): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGASetVidPage'':
XF86DGA.lo(.text+0x4cd): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x4e5): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x533): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAInstallColormap'':
XF86DGA.lo(.text+0x589): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x5a1): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x5ee): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAQueryDirectVideo'':
XF86DGA.lo(.text+0x645): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x660): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x69a): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAViewPortChanged'':
XF86DGA.lo(.text+0x719): undefined reference to `XMissingExtension''
XF86DGA.lo(.text+0x731): undefined reference to `_XFlush''
XF86DGA.lo(.text+0x772): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `SDL_XF86DGAForkApp'':
XF86DGA.lo(.text+0xac3): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(XF86DGA.lo): In function `XF86cleanup'':
XF86DGA.lo(.text+0xbf4): undefined reference to `XSync''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `find_display'':
Xinerama.lo(.text+0x24): undefined reference to `XextCreateExtension''
Xinerama.lo(.text+0x42): undefined reference to `XextFindDisplay''
Xinerama.lo(.text+0x6b): undefined reference to `XextAddDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `close_display'':
Xinerama.lo(.text+0x9d): undefined reference to `XextRemoveDisplay''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XPanoramiXQueryVersion'':
Xinerama.lo(.text+0x13b): undefined reference to `XMissingExtension''
Xinerama.lo(.text+0x156): undefined reference to `_XFlush''
Xinerama.lo(.text+0x191): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XPanoramiXGetState'':
Xinerama.lo(.text+0x247): undefined reference to `XMissingExtension''
Xinerama.lo(.text+0x262): undefined reference to `_XFlush''
Xinerama.lo(.text+0x29b): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XPanoramiXGetScreenCount'':
Xinerama.lo(.text+0x31f): undefined reference to `XMissingExtension''
Xinerama.lo(.text+0x340): undefined reference to `_XFlush''
Xinerama.lo(.text+0x379): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XPanoramiXGetScreenSize'':
Xinerama.lo(.text+0x3ff): undefined reference to `XMissingExtension''
Xinerama.lo(.text+0x420): undefined reference to `_XFlush''
Xinerama.lo(.text+0x45f): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XineramaIsActive'':
Xinerama.lo(.text+0x563): undefined reference to `_XFlush''
Xinerama.lo(.text+0x596): undefined reference to `_XReply''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(Xinerama.lo): In function `SDL_XineramaQueryScreens'':
Xinerama.lo(.text+0x615): undefined reference to `XMissingExtension''
Xinerama.lo(.text+0x633): undefined reference to `_XFlush''
Xinerama.lo(.text+0x66c): undefined reference to `_XReply''
Xinerama.lo(.text+0x6db): undefined reference to `_XRead''
Xinerama.lo(.text+0x72f): undefined reference to `_XEatData''
/usr/lib/gcc-lib/i486-suse-linux/3.2/../../../libSDL.a(SDL_dgaevents.lo): In function `DGA_DispatchEvent'':
SDL_dgaevents.lo(.text+0x2f): undefined reference to `XNextEvent''
collect2: ld returned 1 exit status

Share this post


Link to post
Share on other sites
Normally you''d do it like this:

g++ -o test test.cpp `sdl-config --cflags --libs`

However, what your doing would probably work too, if you were linking against shared libraries instead of static libraries. If you don''t have the shared SDL libraries, then SuSE''s (what it looks like you''re using) package for SDL isn''t all that great .

Share this post


Link to post
Share on other sites
You need to link to

*** the XWindow libraries : X* and _X* functions
* first add the library path -L/usr/X11R6/lib
* then some or all of -lXi -lX11 -lXmu -lXext -Xt)

*** the dynamic loading library : dl* functions
* just add -ldl

*** the posix multithreading library : pthread_* functions
* just add -lpthread

The order of the declaration matters : if libA.so depends on libB.so then -lB must come after -lA.


[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]

Share this post


Link to post
Share on other sites
g++ -o test test.cpp `sdl-config --cflags --libs`

didn''t work, however linking to the X librarys, lpthread and ldl worked. Thanks everyone!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!