From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29031 invoked by alias); 9 May 2003 00:52:55 -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 28729 invoked from network); 9 May 2003 00:52:54 -0000 Received: from unknown (HELO real.ise.canberra.edu.au) (137.92.140.34) by sources.redhat.com with SMTP; 9 May 2003 00:52:54 -0000 Received: from ise.canberra.edu.au (special.ise.canberra.edu.au [137.92.140.39]) by real.ise.canberra.edu.au (8.11.6/8.11.6) with ESMTP id h490qmr05215; Fri, 9 May 2003 10:52:49 +1000 Message-ID: <3EBAFBEA.70403@ise.canberra.edu.au> Date: Fri, 09 May 2003 00:52:00 -0000 From: Ross Johnson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: vc CC: pthreads-win32@sources.redhat.com Subject: Re: pthread Win32 - runtime lib VC++ setting References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003/txt/msg00044.txt.bz2 Hi, vc wrote: >Hi all, > >I'm working on Win2k with VC++ 7.1 (VS .NET beta). >I have to port a Unix app on Windows, so I'm using the pthread lib for >Win32 (http://sources.redhat.com/pthreads-win32/). > >I've downloaded the sources, as I want to build them myself, and >looking at the VC++ settings, I discovered that in Debug >configuration, the /MDd flag is used (which means: "multithread- and >DLL-specific versions of the run-time") and in Release configuration >the /MT flag is used (even if the release version of the /MDd flag is >/MD). > >Questions: >1) Why is not used in the project settings the same flag for both >configuration(i.e /MDd - debug; /MD - release or /MTd - debug; /MT - >release)? Is there a reason, or it was just by mistake? >Note: MS recommended for DLLs to use /MD (/MDd) > Re the /MT flag, I can't say now because I don't really know. >2) If for this is actually no reason, is it ok if I build the sources >using the /MD flag for release? > >3) I donwloaded the sources from >ftp://sources.redhat.com/pub/pthreads-win32/sources/ and there is a >pthreads-snap-2002-11-04 directory. Is this a release version? Is it >ok if I'm using this version, or this is just a version between 2 >releases? > > Since you wan't to build the library yourself, you should get the source via anonymous CVS (see the web page for details - http://sources.redhat.com/pthreads-win32/). It has the latest bug fixes, and currently bug fixes are the only changes from the latest versions available from ftp. I will update the ftp versions ASAP. >4) When I downloaded just binaries some time ago, there were 3 >versions of the binaries: VC, VSE, VCE. The sources that I downloaded >now seems to be for the VC version. Am I correct? (because this is the >version that interests me) > > See the FAQ file, answer to Q2. For VC you don't need to do anything because it is the default. The others can be used if you add the appropriate compile flags when you build your application code, and when you build the library if you don't use the prebuilt dlls. > > >Thanks a lot in advance, >Viv > Regards. Ross > >