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 ===|