From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10017 invoked by alias); 28 Mar 2008 10:24:30 -0000 Received: (qmail 10007 invoked by uid 22791); 28 Mar 2008 10:24:29 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Mar 2008 10:24:03 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JfBke-0006D6-3a for pthreads-win32@sourceware.org; Fri, 28 Mar 2008 03:24:00 -0700 Message-ID: <16349010.post@talk.nabble.com> Date: Fri, 28 Mar 2008 10:24:00 -0000 From: chirakara1974 To: pthreads-win32@sourceware.org Subject: Re: pthreads win32 build errors on Microsoft Visual express In-Reply-To: <16142990.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: kiran_divakaran@infosys.com References: <16142990.post@talk.nabble.com> 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: 2008/txt/msg00012.txt.bz2 Delighted I finally got it.....Silly it looks now ... Got it from msdn posts here it is for anyone stuck on similar issues. {{{ in VS 2005 the simplest way to link ur DLL to ur project is to goto project properties by right clicking on it and the in the project property page navigate to LINKER-->INPUT-->ADDITIONAL DPENDENCIES. Here u can specify extra .lib files that ur project depends on.In General (just avobe INPUT) option u have to specify the relative lib directory also. }}} Regards, Kiran chirakara1974 wrote: > > Hi All, > > I am using the pthread libs and includes from the below link. > > ftp://sourceware.org/pub/pthreads-win32/dll-latest > > > Have included > > > pthreadVCE2.lib and > pthreadVCE2.dll > > and the > > pthread.h , sched.h and semaphore.h in the Microsoft Visual Studio > express paths for include and libraries. I am using a simple threaded > program. > > But I am getting the below errors , please help me resolve them. Is there > anything else I need to include apart from these . > > Any precompiler options and link lines etc. Have added the > pthreadVCE2.lib as well in the additional dependencies option of the > linker still the error are present. Please help. > > > > {{{{------ Build started: Project: Ticktok, Configuration: Debug Win32 > ------ > Linking... > mythread.obj : error LNK2019: unresolved external symbol > __imp__pthread_exit referenced in function _PrintHello > mythread.obj : error LNK2019: unresolved external symbol > __imp__pthread_create referenced in function _main > D:\Express0\Ticktok\Debug\Ticktok.exe : fatal error LNK1120: 2 unresolved > externals > Build log was saved at "file://d:\Express0\Ticktok\Debug\BuildLog.htm" > Ticktok - 3 error(s), 0 warning(s) > ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped > ==========}}}} > > > > > > Regards, > > Kiran > > > > -- View this message in context: http://www.nabble.com/pthreads-win32-build-errors-on-Microsoft-Visual-express-tp16142990p16349010.html Sent from the Sourceware - pthreads-win32 list mailing list archive at Nabble.com.