This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Is the 'namespace' directive unsupported in gcc 2.8.1?
- TO: gcc-help at gcc dot gnu dot org
- Subject: Is the 'namespace' directive unsupported in gcc 2.8.1?
- From: stephen dot m dot wick at mail dot sprint dot com
- Date: Tue, 19 Jun 2001 14:19:36 -0500
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.