There is a compiler bug in CodeWorrior that creates problem using templates.
Use the following to turn off warnings in MSL
#pragma warn_implicitconv off // turn off warnings in MSL
#pragma warn_notinlined off // turn off warnings in MSL
In our case the problem typically happened when adding pointers and
structures to vectors
and the workaround was to use void* instead:
typedef std::vector<void*> tArrayList; // compiler bug: should be
std::vector<tElementType>
// where tElementType is as
follows:
// typedef enum
{
kInvalidType,
kIntType,
kFloatType,
kStringType,
kBooleanType
} tElementType;
Hope this helps!
afshan
Here is a zipped skeleton that you can use
-----Original Message-----
From: David Korus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 30, 1999 12:34 PM
To: '[EMAIL PROTECTED]'
Subject: Problems Using STL Vectors
Hi All,
Perhaps someone can help me. I'm having trouble getting a program
to work using the MSL library functions. I'm essentially just trying to get
any program working to use STL vectors by using the <vector> include file.
Anyway, I'm getting all sorts of errors compiling and I was wondering if
anyone knew what I was doing wrong, or even better, could just send me an
example project that uses vectors.
I suspect I have some compilation option wrong, but I can't seem to
find any that effect my compilation.
Anyway, my program is essentially the "starter" application with <vector>
included. Thanks!
David Korus