From: "Klywarre (The Avatar)" Newsgroups: comp.os.msdos.djgpp Subject: Re: c++ problem Date: Sat, 29 Aug 1998 22:26:39 -0700 Organization: EarthLink Network, Inc. Lines: 42 Message-ID: <35E8E28F.ACBBE4BC@earthlink.net> References: <6s9qs3$su6$4 AT planja DOT arnes DOT si> <35E891DF DOT 9CAFCBF7 AT unb DOT ca> NNTP-Posting-Host: pool035-max3.ds18-ca-us.dialup.earthlink.net 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 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!! #include using namespace std; int main() { cout << "Hell, World! I am " << 8 << " Today!" << endl; return (0); } And this compiled with no errors - so how can you say DJGPP doesn't handle 'namespace' correctly. My version is 2.8.1 -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit patch to an 8 bit operating system originally coded for a 4 bit microprocessor, written by a 2 bit company that can't stand 1 bit of competition. email: mortral AT earthlink DOT net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~