From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22808 invoked by alias); 8 Aug 2009 01:38:34 -0000 Received: (qmail 22800 invoked by uid 22791); 8 Aug 2009 01:38:33 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from bender.grapevine.net.au (HELO bender.grapevine.net.au) (203.129.32.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 08 Aug 2009 01:38:22 +0000 Received: from localhost (localhost [127.0.0.1]) by bender.grapevine.net.au (Postfix) with ESMTP id AFA022101C1; Sat, 8 Aug 2009 11:38:18 +1000 (EST) Received: from bender.grapevine.net.au ([127.0.0.1]) by localhost (bender.grapevine.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cwSYN3w11Z7v; Sat, 8 Aug 2009 11:38:18 +1000 (EST) Received: from [10.1.1.16] (ppp-248.207.127.121.grapevine.net.au [121.127.207.248]) (Authenticated sender: Ross.Johnson@homemail.com.au) by bender.grapevine.net.au (Postfix) with ESMTP id 5B68121008D; Sat, 8 Aug 2009 11:38:18 +1000 (EST) Message-ID: <4A7CD707.8030206@homemail.com.au> Date: Sat, 08 Aug 2009 01:38:00 -0000 From: Ross Johnson User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: "Fritz, Robert H. CIV NAVAIR/5.1.2.1 2424,1,607" CC: pthreads-win32@sourceware.org Subject: Re: Release Build dependency on debug rt in vs7.1 References: <0FD193C7681BE544BC2A4DF53A1E9A9304112982@naeapaxrez05.nadsusea.nads.navy.mil> In-Reply-To: <0FD193C7681BE544BC2A4DF53A1E9A9304112982@naeapaxrez05.nadsusea.nads.navy.mil> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2009/txt/msg00037.txt.bz2 The pre-built pthreadVC2.dll is built using nmake and the Makefile provided (the actual commandline would have been "nmake clean VC-inlined"). I'm guessing the project file isn't inlining, which could account for the larger size for the pre-built dll. For comparison with the project build, if you build with "nmake" as above you should find that the compile options are:- /O2 /Ob2 /W3 /MD /nologo /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H /DPTW32_BUILD_INLINED Although there is a project file included in the sources it was contributed and is not otherwise maintained. I use the commandline tools for all building and testing of the dll because it makes the release process more consistent across the different build environments. Fritz, Robert H. CIV NAVAIR/5.1.2.1 2424,1,607 wrote: > I've downloaded pthreads-w32-2-8-0-release.exe and have built it in Release under vs7.1, letting VS7.1 import/convert the .dsw/.dsp into .sln/.vcproj. While pthreadVC2.dll builds without errors or warnings, my application, also built in Release as part of the same solution, complains if the VS7.1 RT Debug DLL msvcr71d.dll is not present. > > I've isolated the problem to pthreadVC2.dll when built in Release under vs7.1: > 1) I substituted the vs7.1 built DLL with Pre-built.2\lib\pthreadVC2.dll and msvcr71d.dll is no longer required. > 2) I've substituted the vs7.1 built DLL with a VS6 built pthreadVC2.dll I built using the original .dsw/.dsp and again my application runs without complaint. > > I've looked into the .proj file and see that it is properly using NDEBUG. > Can someone duplicate/explain how my DLL has acquired a dependency on msvcr71d.dll? For comparison purposes, my pthreadVC2.dll is 52kb when built in VS7.1. > > The last peculiarity I've noticed is that Pre-built.2\lib\pthreadVC2.dll is 85kb in size, while the one I built in VS6 using the provided .dsw/.dsp is 44kb. I would have expected them to be the same size. This would imply that Pre-built was created using a different method. > > Finally, has anyone played with the VS2010 beta to see what, if any, impact the multi-core support might have on this pthread code? >