Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 97878 invoked from network); 2 Oct 2006 15:01:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 15:01:05 -0000 Received: (qmail 15045 invoked by uid 500); 2 Oct 2006 15:00:47 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 15022 invoked by uid 500); 2 Oct 2006 15:00:47 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 14983 invoked by uid 99); 2 Oct 2006 15:00:46 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 08:00:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [208.30.140.160] ([208.30.140.160:52276] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 02/FB-16499-59921254 for ; Mon, 02 Oct 2006 08:00:40 -0700 Received: from qxvcexch01.ad.quovadx.com (qxvcexch01.ad.quovadx.com [192.168.170.59]) by moroha.quovadx.com (8.13.6/8.13.6) with ESMTP id k92F0ANb017897 for ; Mon, 2 Oct 2006 15:00:10 GMT Received: from [10.70.3.113] ([10.70.3.113]) by qxvcexch01.ad.quovadx.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 2 Oct 2006 09:00:18 -0600 Message-ID: <45212988.3040202@roguewave.com> Date: Mon, 02 Oct 2006 09:00:24 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: [PATCH] Scripts, generating solution and projects for MSVC/ICC [2] References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Oct 2006 15:00:18.0651 (UTC) FILETIME=[79B8C2B0:01C6E633] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Farid Zaripov wrote: [...] > The _RWBUILD_std macro used to define properly _RWSTD_EXPORT macro. Hmm. I hadn't realized that. _RWBUILD_std is a vestige of the Rogue Wave build infrastructure (as you might be able to tell by the odd looking name). [...] > Should we replace #ifdef _RWBUILD_std to #ifdef _RWSTD_LIB_SRC in > _defs.h? Yes. It should also key in on _RWSHARED. > > >>Also, it would be good to document the variables defined in >>the .config files. I have an idea what CPPFLAGS might be but >>what's CONVERT or SLNVER (these are rhetorical questions)? >>While on the subject of these variables, shouldn't -qnoipo be >>defined in LDFLAGS rather than in LD? > > CXX, LD, AR variables are used at configure step only. And not when bulding the lib? Why not? > The CPPFLAGS, > LDFLAGS > are used in libraries, examples and tests builds also. Thus LD variable > should contain > additiona options for configure step. We can rename LDFLAGS to > LDFLAGS.wide and > add LDFLAGS.config I think it's best for the config flags to be the same (and under the same variable) as those used to compile and link the library to prevent accidental incompatibilities. The flags for examples, tests, and everything else can be different as long as they stay binary compatible. > =-qnoipo. BTW it seems to me -qnoipo flags is > unnecessary (I just > copied this flags from the previous scripts). All works fine without > this flag. Let's take it out then. IPO could be useful. > > >>And shouldn't we be using cl (or icl) to link instead of invoking the > > linker directly? > I not found where MS recommends invoke cl.exe instead of link.exe to > link files. In general, linkers like to be invoked via the compiler driver. MSVC's compiler driver, cl, invokes the linker automatically like other drivers do: http://msdn2.microsoft.com/en-us/library/9s7c9wdw.aspx Unless you know of a reason why invoking link.exe directly is better I think we should use the driver. Martin