This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: namespaces with egcs 1.1.2 and Solaris 2.5


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]