Namespace problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am not sure if it is a Microsoft specific extension.

The following code compiles correctly using the latest C/C++ compiler (2005) from Microsoft.

namespace C
{
   enum T
   {
       A,
       B,
       C,
   };
}

int a = C::T::A;

When I compile it using MinGW, gcc produces:

main.cxx:163: error: `C::T' is not a class or namespace
main.cxx:163: error: expected primary-expression before ';' token


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux