From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23291 invoked by alias); 25 Apr 2002 09:58:06 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 23015 invoked from network); 25 Apr 2002 09:57:58 -0000 Received: from unknown (HELO fep21-svc.tin.it) (212.216.176.74) by sources.redhat.com with SMTP; 25 Apr 2002 09:57:58 -0000 Received: from unitus.it ([80.116.240.245]) by fep21-svc.tin.it (InterMail vM.4.01.03.13 201-229-121-113) with ESMTP id <20020425095757.NMEI2344.fep21-svc.tin.it@unitus.it>; Thu, 25 Apr 2002 11:57:57 +0200 Message-ID: <3CC7D2E9.8010407@unitus.it> Date: Thu, 25 Apr 2002 03:13:00 -0000 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc1) Gecko/20020417 X-Accept-Language: en-us, en MIME-Version: 1.0 To: eziolkow@pit.edu.pl CC: gcc@gcc.gnu.org Subject: Re: namespaces References: <3CC7D0CF.F942BAD8@pit.edu.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg01312.txt.bz2 eziolkow@pit.edu.pl wrote: >I have some problem with using 'map'' container from STL when I >include file '/usr/include/net/if.h' on >SunOS 5.8 and with gcc 2.95.2 19991024 . That's because mentioned file >contains another type called 'map'', what conducts to the name >conflict. > >When I investigated why 'std' namespace doesn't resolve this trouble, I >discovered that for my compiler in >file 'stl_config.h' is macro instruction (using __GNUC__ and >__GNUC_MINOR__ macro definition), which defines __STL_NO_NAMESPACES__. >As a result, 'std' namespace does not exists. > >How are your suggestion to overcome this problem ? > My suggestion would be that of upgrading to gcc 3.0.4 or, in a few days, 3.1.0, whose run time library is fully namespace aware. Ciao, Paolo.