Sun Studio Version 11 Compiler Patches/Rogue Wave Question

I get the following errors:

"/sccm/software/sstud11/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 316: Error: A typedef name cannot be used in an elaborated type specifier..

"/sccm/software/sstud11/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 317: Error: A typedef name cannot be used in an elaborated type specifier..

"/sccm/software/sstud11/SUNWspro/prod/include/CC/rw7/rw/defs.h", line 318: Error: A typedef name cannot be used in an elaborated type specifier..

What patches do I need for the compiler? I'm using Rogue Wave SourcePro 9.5 and CC: Sun C++ 5.8 2005/10/13.

[605 byte] By [Kerrangstera] at [2007-11-27 10:24:26]
# 1

My OS is SunOS 5.8.

Kerrangstera at 2007-7-28 17:27:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

You are picking up headers from the version of RW Tools.h++ provided with the compiler, which is a very old (1998) version of Tools.h++. You probably want to use the Tools.h++ that is part of SourcePro instead. Remove -library=rwtools7 options from all command lines and see what happens.

Also consult the SourcePro documentation for instructions on using it with Sun compilers.

You have the original, unpatched, version of Sun Studio 11. You can get current patches here:

http://developers.sun.com/sunstudio/downloads/patches/index.jsp

As long as you are using Solaris 8 (which is End Of Life), you can't upgrade to Sun Studio 12.

clamage45a at 2007-7-28 17:27:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

These lines contain macro _RWCLASSTYPE. And it is not clear how this macro expanded. Could you use -P or -E command line option to get preprocessed output and show corresponded fragment of code?

Atanasyana at 2007-7-28 17:27:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4

I'll need the following patches:

Sun Studio 11 Compilers and Tools

Compilers Back-End

C++

Sun Performance Library

Solaris 8

OpenMP support libmtsk

64-bit shared library patch for C++

SunOS 5.8 Math Library libm patch

Linker patch

SCCS and make

Kerrangstera at 2007-7-28 17:27:56 > top of Java-index,Development Tools,Solaris and Linux Development Tools...