From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13780 invoked by alias); 10 Aug 2007 02:33:20 -0000 Received: (qmail 13687 invoked by uid 22791); 10 Aug 2007 02:33:20 -0000 X-Spam-Check-By: sourceware.org Received: from web94403.mail.in2.yahoo.com (HELO web94403.mail.in2.yahoo.com) (203.104.16.228) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 10 Aug 2007 02:33:18 +0000 Received: (qmail 1137 invoked by uid 60001); 10 Aug 2007 02:33:14 -0000 X-YMail-OSG: VILFt4kVM1lS4uTOI3iiF_TLODdX9NzR8GwSGcCRkOPibDIqrEJ.MEiQafPTkrs76__jBZqQQomDWeZ2w5P3wEUYVRhj5h4P5ZPt Received: from [198.95.226.224] by web94403.mail.in2.yahoo.com via HTTP; Fri, 10 Aug 2007 03:33:14 BST Date: Fri, 10 Aug 2007 13:33:00 -0000 From: Varun Jobanputra Subject: Newbie trying to build statically linkable lib. To: pthreads-win32@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <850926.99616.qm@web94403.mail.in2.yahoo.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: 2007/txt/msg00038.txt.bz2 Hi, I am a total newbie !! so please excuse my stupid question... I was able to use Win32 pthreads as a DLL. Everything was perfect. But for easier distribution of my program I want to link it statically. So I downloaded pthreads-w32-2-8-0-release.exe and extracted all the files in C:\pthreads. I then went to C:\pthreads\pthreads.2 and ran "nmake clean VC-static". However, I get the following error: c:\pthreads\pthreads.2\pthread.h(218) : fatal error C1083: Cannot open include file: 'time.h': No such file or directory 1) So it is ofcourse not able to find time.h whilch lies in MSVC include folder C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include. Can anyone please tell me what exactly do I need to do here ? 2) Do I need to add all the pthread source files (which I downloaded and extracted), to my project ? 3) So, I guess once nmake succeeds, it will create pthreadVCn.lib. Then what do I need to do with it ? Just copy paste it to the MSVC lib directory ? I would really appreciate if someone can help me out here !!!! Thanks and regards, VJ. Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/