4d4 Subj : pthreads in a static library To : comp.programming.threads From : JimLasc Date : Wed Aug 31 2005 05:45 am Hello, I usually use pthreads in a dll, but now I want to use them in a static library. I want my program to work on any win NT pc. I'm compiling using Intel C++ 9 compiler. I use win32-pthreads. I had no problems creating the static lib (just had to define PTW32_BUILD). Now when I'm trying to use them in a program I have for every function a link error (I did included the header files, and it doesn't has anything to do with the calling conventions...). Here are some examples: =B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0= =B0=B0=B0=B0=B0=B0=B0=B0=B0=B0 teststatic.obj : error LNK2001: unresolved external symbol __imp__pthread_join teststatic.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_init teststatic.obj : error LNK2001: unresolved external symbol __imp__pthread_mutex_destroy teststatic.obj : error LNK2001: unresolved external symbol __imp__sem_init =B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0=B0= =B0=B0=B0=B0=B0=B0=B0=B0=B0=B0 What can I be doing wrong? Thanks for any suggestions. Jim . 0