From: "dnult" Newsgroups: comp.os.msdos.djgpp Subject: parse error on 'using namespace std;' Date: Thu, 5 Aug 1999 22:34:27 -0500 Organization: AT&T WorldNet Services Lines: 22 Message-ID: <7odlbc$p9k$1@bgtnsc03.worldnet.att.net> NNTP-Posting-Host: 12.74.4.98 X-Trace: bgtnsc03.worldnet.att.net 933910700 25908 12.74.4.98 (6 Aug 1999 03:38:20 GMT) X-Complaints-To: abuse AT worldnet DOT att DOT net NNTP-Posting-Date: 6 Aug 1999 03:38:20 GMT X-Newsreader: Microsoft Outlook Express 4.72.3155.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I just installed djgpp ver 2.81 on my Windows98 system and have just began to compile sample programs. I received a parse error on the following snippet of code. int main() { using std::copy; using std::cout; ... The compiler complains "In function int main(), parse error before 'using'". If I comment out the namespace specifiers the code compiles fine, (but doesn't run). If I replace all the namespace specifiers with 'using namespace std;', I get the same error. Is there some switch I'm not using or some other reason to cause gxx to not recognize the using keyword? -dnult