This is the mail archive of the
mailing list for the pthreas-win32 project.
RE: Linking Issue,
- From: "Sinan KAYA" <sinan dot kaya at siemens dot com>
- To: "Craig Main" <craig at palantir dot co dot za>, <pthreads-win32 at sourceware dot org>
- Date: Thu, 8 Feb 2007 15:31:35 +0200
- Subject: RE: Linking Issue,
This is a compiler specific problem.Check out gcc documentation on how
to use it.
You use -l switch to link a library against a project. You need
gcc .... -lpthreadGC2d
Note that you omit lib in front of the library file and you can also
tell the compiler where to find the library by "-L" switch
[mailto:email@example.com] On Behalf Of Craig Main
Sent: Thursday, February 08, 2007 3:05 PM
Subject: Linking Issue,
I had really hoped to solve this problem by searching the list archive,
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',
without the define I receive undefined reference '__imp_pthread_create'
Is this a common problem?