[gecode-users] Compiling statically

Dhananjay Thiruvady drthi1 at student.monash.edu
Sat Jul 3 05:03:25 CEST 2010


Hi all,

I have problems when I try to compile my executable statically. After
reading through the archives my configure options look like:

./configure --enable-static --disable-shared --disable-examples

This creates the appropriate *.a files. When I try to compile my program I
get errors of the following type:

/usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/libgecodeint.a(int.o): In
function `Gecode::Support::Mutex::acquire()':
~/Documents/gecode-3.3.1/./gecode/support/thread/pthreads.hpp:54: undefined
reference to `pthread_mutex_lock'

I'm using gcc 4.3.3. Any help with this will be appreciated.

Thanks,
Dhananjay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20100703/c29a81b4/attachment.htm>


More information about the users mailing list