On 11 May 2011, at 12:32, Martin Mann wrote: > > arggh... blind blind blind ... > > of course the "-lpthread" was missing in the linker call... grr.. > > nevertheless, thanks for reading. ;)
No worries. Static linking should be fully supported on Unix (although it's not tested regularly). Btw, with gcc you should use the -pthread compiler flag (for both compiling and linking) instead of -lpthread. Guido > > Martin > > > > Am 11.05.2011 12:23, schrieb Martin Mann: >> >> Hi Gecoder, >> >> I am currently struggling with the static libs of Gecode. Get pages of >> >> " undefined reference to `pthread_mutex_lock'" >> >> and I am still digging in my setup to find the problem. >> >> But I thought to remember that there were some issues about static >> gecode libs and so my question: Are they supported/tested or not >> recommended? >> >> Unfortunately, I ve got to build statically, since the binary has to be >> executable at different linux and unix systems without local >> recompilation. :/ >> >> I will further investigate if the problem is somewhere within the >> calling code or the linking setup, which is unfortunately not written by >> me so I cannot give further information for now .. :/ >> >> I am using >> - x86_64-redhat-linux >> - gcc 4.5.1 >> - gecode 3.5.0 with >> >> ./configure --enable-static --disable-shared --disable-gist >> --disable-int-vars --disable-driver --disable-examples >> --disable-scheduling --disable-graph >> >> so long, >> Martin >> >> >> > > -- > Martin Mann, Dipl. Bioinf. > Bioinformatics - Inst. of Computer Science > Albert-Ludwigs-University Freiburg > Tel: ++49-761-203-8259 > Fax: ++49-761-203-7462 > http://www.bioinf.uni-freiburg.de/~mmann/ > > _______________________________________________ > Gecode users mailing list > [email protected] > https://www.gecode.org/mailman/listinfo/gecode-users -- Guido Tack, http://people.cs.kuleuven.be/~guido.tack/ _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
