From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5375 invoked by alias); 28 Sep 2005 03:03:31 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 5361 invoked by uid 22791); 28 Sep 2005 03:03:26 -0000 Received: from mx.go2.pl (HELO poczta.o2.pl) (193.17.41.41) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 28 Sep 2005 03:03:26 +0000 Received: from [192.168.1.101] (c-24-60-61-182.hsd1.ma.comcast.net [24.60.61.182]) by poczta.o2.pl (Postfix) with ESMTP id D85EE137677 for ; Wed, 28 Sep 2005 05:02:33 +0200 (CEST) Message-ID: <433A07F8.4070202@go2.pl> Date: Wed, 28 Sep 2005 03:03:00 -0000 From: Fibre Optic User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) MIME-Version: 1.0 To: pthreads-win32@sources.redhat.com Subject: pthreads-win32 and linking problem Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005/txt/msg00121.txt.bz2 Hello All, I am a newbe here in multi thread programing and I have such a problem: I downloaded thread sources from CVS then I compiled all under msys with " make clean GC-static. Compilation went fine and I got libpthreadGC2.a file. I wrote small code but during compilation/linking I receive such a message: main.o:main.cpp:(.text+0xbd): undefined reference to `_imp__pthread_create' main.o:main.cpp:(.text+0xe2): undefined reference to `_imp__pthread_create' main.o:main.cpp:(.text+0xfe): undefined reference to `_imp__pthread_join' main.o:main.cpp:(.text+0x11a): undefined reference to `_imp__pthread_join' make.exe: *** [test.exe] Error 1 I added *.a library to my linker command but even this I have above mentioned message :-( Could someone put some light on this issue ? How to fix this ? Regards, Fibre Optic