From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18742 invoked by alias); 12 May 2006 08:13:47 -0000 Received: (qmail 18725 invoked by uid 22791); 12 May 2006 08:13:46 -0000 X-Spam-Flag: YES X-Spam-Check-By: sourceware.org Received: from smtp-out4.blueyonder.co.uk (HELO smtp-out4.blueyonder.co.uk) (195.188.213.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 12 May 2006 08:13:30 +0000 Received: from [172.23.170.145] (helo=anti-virus03-08) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1FeSm7-0006oR-Mq for pthreads-win32@sourceware.org; Fri, 12 May 2006 09:13:27 +0100 Received: from [82.41.235.177] (helo=matsemann) by asmtp-out2.blueyonder.co.uk with esmtp (Exim 4.52) id 1FeSm6-0007u8-5Z for pthreads-win32@sourceware.org; Fri, 12 May 2006 09:13:26 +0100 From: "Mats Aubell" To: Subject: Linking problem Date: Fri, 12 May 2006 08:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00015.txt.bz2 Message-ID: <20060512081300.XW64xhicR6IV80tlEwfu_Au_ycTAb64twj04gwxUW-0@z> Hi all, I'm having problems getting the pthread library to work. I've followed the instructions which can be found in the faq (http://sourceware.org/pthreads-win32/faq.html). I have the dll file in the Windows catalog. The 3 headers files are in the same folder and the lib file has been added through the tools->options->projects->vc++ directories. When I compile I get this error msg: ssds error LNK2019: unresolved external symbol __imp__pthread_create referenced in function _main The relevant source code can be seen under. #include "pthread.h" void * threadBehavior(void * arg) { printf("TEST\n"); return 0; } pthread_t m_threadBehavior; int main(int argc, char *argv[]) { if (pthread_create(&m_threadBehavior, NULL, threadBehavior, NULL)) { printf("Cannot create the behavior thread.\n"); return false; } return 0; I'm running WinXP and Microsoft Visual Studio 2003. Getting quite desperate for help, so any feedback is greatly appreciated. Regards, Mats Aubell