X-Originating-Host: 155.64.60.106 Organization: http://www.remarq.com: The World's Usenet/Discussions Start Here Subject: Re: namespaces Lines: 24 From: Charlie Newsgroups: comp.os.msdos.djgpp Message-ID: <200331a0.6bf71d54@usw-ex0102-016.remarq.com> References: Bytes: 870 X-Wren-Trace: eJm8lJWMy4HK2pmDidyUnKuChoiRnNCD0paZl9Dc1YzYyY3WwYnCxsXO Date: Tue, 08 Feb 2000 17:42:18 -0800 NNTP-Posting-Host: 10.0.2.16 X-Complaints-To: wrenabuse AT remarq DOT com X-Trace: WReNphoon4 950060458 10.0.2.16 (Tue, 08 Feb 2000 17:40:58 PST) NNTP-Posting-Date: Tue, 08 Feb 2000 17:40:58 PST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , Xenos wrote: >Does DJGPP support or plan to support namespaces? Yes, it does support namespaces. You need a recent version of gcc - probably 2.95. I think 2.95.2 is the latest. gcc is slightly non-standard with namespaces. If it can't resolve a reference to a name in the global namespace, it automatically looks in the std namespace. You can usually get away with using a line like: cout << "blah" << endl; when you should strictly have written std::cout << "blah" << std::endl; and this might cause problems when porting to other compilers. OF course, this second version also works in gcc/djgpp. Charlie. * Sent from RemarQ http://www.remarq.com The Internet's Discussion Network * The fastest and easiest way to search and participate in Usenet - Free!