migrating c++ code from Solaris Studio 12.3 to 12.4

we are upgrading c++ compiler from Solaris studio 12.3 to 12.4
I am having a problem compiling one executable

below is the error

Undefined symbol
const std::vector<RWCString>&RW_VBase<std::vector<RWCString>,RWTValOrderedVector<RWCString,std::allocator<RWCString> > >::std() const test.o

std::vector<RWCString>&RW_VBase<std::vector<RWCString>,RWTValOrderedVector<RWCString,std::allocator<RWCString> > >::std() test.o

ld: fatal:symbol referencing errors. No output written to testApp

Same code works with Solaris studio 12.3.

if I write this simple code in existing code, it fails with linking error with Studio 12.4
#include <rw/tvordvec.h>
RWTValOrderedVector<double> vec;
vec.insert(22.0);


Any idea what can cause this?
any help would be appreciated
Last edited on
I don't know solaris studio at all, but for vector see this:

http://www.cplusplus.com/reference/vector/vector/insert/


For the insert function it is required that you need to provide an interator for the position before the value is inserted.

Maybe the new version of the solaris studio is now closer to the c++ standard.
Thanks for your response coder777, I believe you never used RWTValOrderedVector. I appreciate your response though.
Topic archived. No new replies allowed.