From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8139 invoked by alias); 8 Feb 2007 13:32:05 -0000 Received: (qmail 8130 invoked by uid 22791); 8 Feb 2007 13:32:04 -0000 X-Spam-Check-By: sourceware.org Received: from ns2.siemens.com.tr (HELO karya.siemens.com.tr) (212.133.141.62) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 08 Feb 2007 13:31:52 +0000 Received: from tristk010msx.tr001.siemens.net (kapadokya.siemens.com.tr [141.29.16.101]) by karya.siemens.com.tr (8.13.4/8.13.4/Debian-3) with ESMTP id l18EiFrP007787; Thu, 8 Feb 2007 16:44:15 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Linking Issue, Date: Thu, 08 Feb 2007 13:32:00 -0000 Message-ID: <725A29F6B5035C45A40BDE230A5B92190A49858B@TRISTK010MSX.tr001.siemens.net> In-Reply-To: <000201c74b81$bf1c0f20$f10311ac@JSEDev.co.za> From: "Sinan KAYA" To: "Craig Main" , X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2007/txt/msg00016.txt.bz2 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 something like gcc .... -lpthreadGC2d=20 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 Sinan. -----Original Message----- From: pthreads-win32-owner@sourceware.org [mailto:pthreads-win32-owner@sourceware.org] On Behalf Of Craig Main Sent: Thursday, February 08, 2007 3:05 PM To: pthreads-win32@sourceware.org Subject: 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