2 Replies Latest reply: Jan 30, 2014 7:27 AM by 3165ff84-0bdd-4099-b300-75d7fd067056 RSS

    Error: A declaration does not specify a tag or an identifier.

    3165ff84-0bdd-4099-b300-75d7fd067056

      Hi,

       

      I had a physical Solaris Sparc machine which I was using as a build system. Due to some requirements I had to virtualize it and now, with the same compiler and options I am getting the following error:

       

      Error: A declaration does not specify a tag or an identifier.

      Error: Use ";" to terminate declarations.

      Error: "}" expected instead of "0x10".

      Error: Use ";" to terminate declarations.

      Error: A declaration was expected instead of "0x10".

       

      When trying to compile the following line:

       

      static const ::CORBA::UShort SHARED;

       

      The issue appears to be a conflict with the name SHARED because if I change it the error will disappear. But to change the name is not a possibility since the file is auto-generated...

       

      Any ideas what the problems is or how to fix it.

       

      Compiler version: Sun C++ 5.8 2005/10/13

       

      Cheers,

      Ruben