This is the mail archive of the
mailing list for the pthreas-win32 project.
pthreads-win32 and linking problem
- From: Fibre Optic <fibre_optic at go2 dot pl>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Tue, 27 Sep 2005 23:03:20 -0400
- Subject: pthreads-win32 and linking problem
I am a newbe here in multi thread programing and I have such a problem:
I downloaded thread sources from CVS then I compiled all under msys with
" make clean GC-static. Compilation went fine and I got libpthreadGC2.a
file. I wrote small code but during compilation/linking I receive such
main.o:main.cpp:(.text+0xbd): undefined reference to `_imp__pthread_create'
main.o:main.cpp:(.text+0xe2): undefined reference to `_imp__pthread_create'
main.o:main.cpp:(.text+0xfe): undefined reference to `_imp__pthread_join'
main.o:main.cpp:(.text+0x11a): undefined reference to `_imp__pthread_join'
make.exe: *** [test.exe] Error 1
I added *.a library to my linker command but even this I have above
mentioned message :-( Could someone put some light on this issue ? How
to fix this ?