This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: namespaces with egcs 1.1.2 and Solaris 2.5
- To: bender at iib dot tu-darmstadt dot de
- Subject: Re: namespaces with egcs 1.1.2 and Solaris 2.5
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 30 Mar 1999 01:48:53 +0200
- CC: egcs at egcs dot cygnus dot com
- References: <199903291209.OAA06770@obelix.bauing.tu-darmstadt.de>
> 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