This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Linking Issue,


Hi,

I had really hoped to solve this problem by searching the list archive, so
sorry for the question, but I am struggling.
I am sure this is a simple one.

I am using MinGW to compile and use pthreads.
I have built libpthreadGC2d.a and libpthreadGC2.a

I cannot seem to link the built library to my c++ application.
With -DPTW32_STATIC_LIB I receive undefined reference 'pthread_create', and
without the define I receive undefined reference '__imp_pthread_create'

Is this a common problem?

Regards
Craig




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]