J***@gmail.com
2005-08-31 11:45:15 UTC
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:
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
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
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
What can I be doing wrong? Thanks for any suggestions.
Jim
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:
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
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
°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
What can I be doing wrong? Thanks for any suggestions.
Jim