If you see the section Using ClanLib at http://clanlib.org/wiki/MainDocs:GNU_C%2B%2B_on_Linux
You see that you require to libk against pthread as well: -lpthread


Quote Originally Posted by Matt-SD View Post
EDIT:

I've added the libclan23App.a & libclan23Core.a & now I'm getting this:

Code:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `/home/matt/NetBeansProjects/Test Orx'
"/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/test_orx
make[2]: Entering directory `/home/matt/NetBeansProjects/Test Orx'
mkdir -p dist/Debug/GNU-Linux-x86
g++ -std=c++0x    -o dist/Debug/GNU-Linux-x86/test_orx build/Debug/GNU-Linux-x86/main.o /usr/local/lib/libclan23App.a /usr/local/lib/libclan23Core.a 
make[2]: Leaving directory `/home/matt/NetBeansProjects/Test Orx'
make[1]: Leaving directory `/home/matt/NetBeansProjects/Test Orx'
/usr/local/lib/libclan23Core.a(libclan23Core_la-mutex.o): In function `CL_Mutex::try_lock()':
/home/matt/ClanLib-2.3.3/Sources/Core/System/mutex.cpp:101: undefined reference to `pthread_mutex_trylock'
/usr/local/lib/libclan23Core.a(libclan23Core_la-mutex.o): In function `CL_Mutex':
/home/matt/ClanLib-2.3.3/Sources/Core/System/mutex.cpp:55: undefined reference to `pthread_mutexattr_init'
/home/matt/ClanLib-2.3.3/Sources/Core/System/mutex.cpp:62: undefined reference to `pthread_mutexattr_setkind_np'
/home/matt/ClanLib-2.3.3/Sources/Core/System/mutex.cpp:66: undefined reference to `pthread_mutexattr_destroy'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/test_orx] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 1s)