namespaces with egcs 1.1.2 and Solaris 2.5
Martin v. Loewis
martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:46:00 GMT 1999
> main.cpp: In function `void laber()':
> main.cpp:7: redefinition of `void laber()'
> main.cpp:4: `void laber()' previously defined here
> main.cpp: At top level:
> main.cpp:15: parse error at end of input
I don't get these errors. I get
main.cc: In function `void foo()':
main.cc:7: redefinition of `void foo()'
main.cc:4: `void foo()' previously defined here
main.cc: At top level:
main.cc:16: parse error at end of input
Please post the error messages that correspond the the source next
time. As for the errors themselves ...
> namespace test {
> void foo() { cout << "namespace-foo" << endl;
^^^^^
> };
Aren't we missing a '}' here?
Hope this helps,
Martin
More information about the Gcc
mailing list