Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 59867 invoked from network); 2 Oct 2006 20:02:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 20:02:16 -0000 Received: (qmail 45731 invoked by uid 500); 2 Oct 2006 20:02:16 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 45718 invoked by uid 500); 2 Oct 2006 20:02:16 -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 45706 invoked by uid 99); 2 Oct 2006 20:02:16 -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 13:02:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [208.30.140.160] ([208.30.140.160:54245] helo=moroha.quovadx.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 34/D6-24395-64071254 for ; Mon, 02 Oct 2006 13:02:15 -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 k92K1s49028773 for ; Mon, 2 Oct 2006 20:01:54 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 14:02:18 -0600 Message-ID: <45217050.8000006@roguewave.com> Date: Mon, 02 Oct 2006 14:02: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: unable to use boolalpha stream manipulator in sourcepro ed9 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Oct 2006 20:02:18.0991 (UTC) FILETIME=[AA4937F0:01C6E65D] X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Scott Zhong wrote: > cat t.cpp && gcc -D_RWCONFIG=12d -I../../include > -I./../../../../include -I./../../../../include/ansi t.cpp > > #include The boolalpha manipulator is required to be declared in the header but in no other. Implementations are allowed to #include any library headers in any other so while your code may compile with some it's not portable. stdcxx does its best to avoid bringing in more symbols into scope than necessary -- it's a feature of our implementation and a portability bug in your code :) Martin > > using namespace std; > > > > int main () { > > bool b; > > b=true; > > cout << boolalpha << b << endl; > > cout << noboolalpha << b << endl; > > return 0; > > } > > t.cpp: In function `int main()': > > t.cpp:7: `boolalpha' undeclared (first use this function) > > t.cpp:7: (Each undeclared identifier is reported only once for each > function it > > appears in.) > > t.cpp:8: `noboolalpha' undeclared (first use this function) > > > > problem first appeared when using sourcepro ed6 and also appears true > for ed9. > > > > Yu (Scott) Zhong > >