"Type is incomplete"

Have a problem that's actually convinced me to *learn* C++ rather than just tweaking source I have.

The guy that wrote most of the C++ code I maintain at work was a C guy, and I end up with a fair amount of warnings for string literals being saved to chars and such, but despite the warnings the compiles have always worked.

I just installed Sun Workshop Compiler 5.13 for some 64 bit compiles and it is tossing out the following line (and a number like it)

clnParameters->CountryReturnType = new enum cln1__CountryReturnType;
(Error: The type "cln1__CountryReturnType" is incomplete.)

The crazy thing is that it doesn't even generate a warning with the older 5.9 compiler running on the same box with the same source directory.

Does anyone know of any restrictions in the newer compilers or where I should backtrack decaration and include-wise in order to start debugging?

-Scott
What types are cln1__CountryReturnType and CountryReturnType defined as ?
Topic archived. No new replies allowed.