Click to See Complete Forum and Search --> : Roguewave


PiyuNewe
July 14th, 2005, 03:19 AM
Gurus,

I am using Roguewave libraries in my Application. While compiling one of the component I am getting following error

"/export/home/3rdparty/roguewave/workspaces/SOLARIS/SUNPRO/rw/defs.h", line 554: Error: A typedef name cannot be used in an elaborated type specifier..

While trying to fix the same, i found one link which can be interpreats as "error may occured if Roguewave libraries are shipped with Sun Compiler".

More information :
Compiler : SUN Studio 10 C++
OS : 2.8

Appriciate the inputs on this.

-PiyuNewe

NMTop40
July 14th, 2005, 05:28 AM
The error is probably in your code, and you probably tried a template typedef, which should be allowed in C++ but is not. Herb Sutter supports the use of them and so they'll probably be in the next standard, and then after a while there will be compilers that are up to date and suppor them.

In the meantime you can't use them. If you really have to, use a macro, thus

#define MySpecialisedTemplate(T) templateWithLotsOfParameters<T, A, B, C >