Results 1 to 3 of 3

Thread: undefined reference to `XConvertSelection'|

  1. #1
    Peasant
    Join Date
    Oct 2009
    Posts
    9

    Default undefined reference to `XConvertSelection'|

    Hi!

    I am really beginner in Linux, and in Programming too...
    I have Ubuntu.
    I had used ClanLib 2.0, and now i downloaded Clanlib2.1
    I had deleted Clanlib 2.0, (from usr/local/include, and usr/local/lib),
    and installed ClanLib 2.1...
    I had 'make' the Basic2D example, and it had works fine...
    I use CodeBlocks, and for ClanLib2.0, it was OK.
    But now, i copy the Basic2D.cpp into a CodeBlocks-projct, and i setup the things, like before
    (Settings/Complier and Debugger/
    -Linker Settings:libclan21App, libclan21Display, libclan21Core, libclan21GL1;
    -Search Directories: /usr/local/include/ClanLib-2.1/
    ), and i become these errors:
    What is the problem? Why i didn't work in CodeBlocks, and why it work in other case? Help please!
    Thanks!

    Code:
    /usr/local/lib/libclan21Display.so||undefined reference to `XConvertSelection'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XAllocSizeHints'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XFreeColormap'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSendEvent'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XGetWindowProperty'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XQueryTree'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSetWMNormalHints'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XIconifyWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSetStandardProperties'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSetWMProtocols'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCreateFontCursor'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XKeycodeToKeysym'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XKeysymToKeycode'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCreateColormap'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCreatePixmapCursor'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XInternAtom'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSetInputFocus'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XGetWMNormalHints'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XInitThreads'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XChangeProperty'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XLookupString'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XMoveResizeWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XPending'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XFreeCursor'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSetSelectionOwner'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XMapWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XQueryPointer'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XRaiseWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCreateBitmapFromData'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XQueryKeymap'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XFree'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCheckTypedWindowEvent'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCheckMaskEvent'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XOpenDisplay'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XNextEvent'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XResizeWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XGetGeometry'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XUnmapWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XWarpPointer'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XFlush'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCreateWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XDestroyWindow'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XMaskEvent'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XGetInputFocus'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XDefineCursor'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XGetWindowAttributes'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XFreePixmap'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XKeysymToString'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XCloseDisplay'|
    /usr/local/lib/libclan21Display.so||undefined reference to `XSync'|
    ||More errors follow but not being shown.|
    ||Edit the max errors limit in compiler options...|
    ||=== Build finished: 50 errors, 0 warnings ===|

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    You are not linking other external libraries

    for example: -lX11

    Use

    pkg-config --libs clanApp-2.1 clanDisplay-2.1 clanCore-2.1 clanGL1-2.1

    To list the required libraries

  3. #3
    Peasant
    Join Date
    Oct 2009
    Posts
    9

    Default

    Huh, Thanks man!
    I almost format my computer, and reinstall all the things...
    Thanks really!
    Koli

Similar Threads

  1. Novashell Scripting Reference
    By sirlich in forum Novashell Game Creation System
    Replies: 2
    Last Post: 10-20-2009, 11:09 AM
  2. Why not pass GraphicContext by reference?
    By SandHawk in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 06-23-2009, 07:48 PM
  3. Minor reference error
    By mikael in forum Novashell Game Creation System
    Replies: 1
    Last Post: 07-09-2008, 11:12 PM
  4. CL_Slot undefined reference
    By karaman in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-30-2008, 11:00 AM
  5. ClanLib 0.8 and undefined references
    By glajan in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-03-2007, 09:33 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •