This is the mail archive of the gcc-help@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]

Is the 'namespace' directive unsupported in gcc 2.8.1?


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.

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