PDA

View Full Version : V0.1.9 cannot compile on my linux box :(


themax
01-20-2002, 08:22 PM
[root@viva world]# make
gcc -c -g -m486 -O3 -pthread -pipe -DFX -I/usr/include/mysql client.cpp -o clien
t.o
client.cpp: In method `ClientList::ClientList ()':
client.cpp:499: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared
(first use this function)
client.cpp:499: (Each undeclared identifier is reported only once for
each function it appears in.)
client.cpp:500: `pthread_mutex_lock' undeclared (first use this
function)
client.cpp:501: `pthread_mutex_unlock' undeclared (first use this
function)
make: *** [client.o] Error 1

DeletedUser
01-20-2002, 11:58 PM
Yep, the linux version is hosed until someone figures out how to create a recursive mutex. :/

I've tried and cant figure it out.

Raptor
01-24-2002, 06:06 AM
Sorry for my hack I gave you Quagmire, but this one should work better :)

Add -D_USE_GNU in the compiler options (makefile)
(or defined it before calling pthread.h, look at that file :) )