undefined reference to `pthread_create'


I try to link occ 6.2 on my mandriva 2007 (x86_64), but I have the following message while linking DRAWEXE:
/home/opencascade/ros/adm/make/TKernel/.libs/libTKernel.so: undefined reference to `pthread_create'...

any idea ?

thanks a lot !


Denis Kramer's picture

You want to link with another STL library. Use this one: http://sourceforge.net/projects/stlport/ and while running configure use the --with-stlport-xxx switches. Then it should compile.

Will Dicharry's picture

I don't know if you're still interested, but OC's configure script doesn't place the -pthread flag in the linker (Fedora 9 64 bit), which was causing the same problem for me. I fixed it by passing -pthread into LDFLAGS in the configure call and that seemed to work for me without having to use stlport.