This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> 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