Is the 'namespace' directive unsupported in gcc 2.8.1?
stephen.m.wick@mail.sprint.com
stephen.m.wick@mail.sprint.com
Tue Jun 19 12:20:00 GMT 2001
I am receiving the following error:
>g++ test.cpp -o test
test.cpp:4: sorry, not implemented: namespace
test.cpp: In function `int main()':
test.cpp:13: `Test' undeclared (first use this function)
test.cpp:13: (Each undeclared identifier is reported only once
test.cpp:13: for each function it appears in.)
test.cpp:13: parse error before `::'
compiling the following code:
#include<iostream>
namespace Test
{
void usage()
{
cout << "This is a test application." << endl;
}
}
int main()
{
Test::usage();
return 0;
}
If the 'namespace' directive is not supported in 2.8.1, when will it be
implemented? Thank you very much for your time! Enjoy.
More information about the Gcc-help
mailing list