From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14716 invoked by alias); 25 Apr 2002 09:47:47 -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 14691 invoked from network); 25 Apr 2002 09:47:41 -0000 Received: from unknown (HELO ti-mstr.pit.edu.pl) (195.94.207.171) by sources.redhat.com with SMTP; 25 Apr 2002 09:47:41 -0000 Received: from l-1.pit.edu.pl ([10.10.0.55]) by ti-mstr.pit.edu.pl (Post.Office MTA v3.5.3 release 223 ID# 0-69906U200L2S100V35) with ESMTP id pl for ; Thu, 25 Apr 2002 11:59:17 +0200 Received: from pit.edu.pl (l-1.pit.edu.pl [172.16.172.8]) by l-1.pit.edu.pl (Postfix) with ESMTP id EFEBDBD10 for ; Thu, 25 Apr 2002 11:47:59 +0200 (CEST) Message-ID: <3CC7D0CF.F942BAD8@pit.edu.pl> Date: Thu, 25 Apr 2002 02:54:00 -0000 From: eziolkow@pit.edu.pl Organization: PIT X-Accept-Language: pl, en MIME-Version: 1.0 To: gcc@gcc.gnu.org Subject: namespaces Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg01307.txt.bz2 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 ? King regards, Eligiusz Ziolkowski