From: Endlisnis Newsgroups: comp.os.msdos.djgpp Subject: Re: c++ problem Date: Sun, 30 Aug 1998 11:39:42 -0300 Organization: NBTel Internet Lines: 29 Message-ID: <35E9642E.864B966A@unb.ca> References: <6s9qs3$su6$4 AT planja DOT arnes DOT si> <35E891DF DOT 9CAFCBF7 AT unb DOT ca> <35E8E28F DOT ACBBE4BC AT earthlink DOT net> NNTP-Posting-Host: fctnts12c40.nbnet.nb.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Klywarre (The Avatar) wrote: > > Endlisnis wrote: > > > > Iztok Polanic wrote: > > > Hello !!! > > > I've bought myself a book called Beginning C++ ANSI/ISO Compliant by Ivor > > > Horton. But the example doesn't want to compile. I always receive this > > > error: > > > -------------- > > > 2.6A.cpp:3: warning: namespaces are mostly broken in this version of g++ > > This warning should be VERY self-explaining. Name spaces don't work properly > > in DJGPP yet. > It doesn't! > The other night I downloaded the electronic version of Thinking In > C++, in the first example reguarding 'iostream' is the following code > that I typed in and 'compiled' fined "with no" errors!! > And this compiled with no errors - so how can you say DJGPP doesn't > handle 'namespace' correctly. My version is 2.8.1 Just because one program that uses namespaces works, doesn't mean that namespaces work in general. The warning says that namespaces are 'mostly' broken. That means that in some simple cases, they will work. -- (\/) Endlisnis (\/) s257m AT unb DOT ca Endlisnis AT GeoCities DOT com Endlis AT nbnet DOT nb DOT ca