LD errors when I link to archive, but not with the objects.

I

ikinal

I'm getting undefined symbols when I try to put my objects
in a static lib, but when I link all the objects with my main test
program, everything works fine...

I've traced the problem to a vector clear and a vector push
operation.

Here's the error message:

__type_1
std::copy<OC::ColumnData*,OC::ColumnData*>(__type_0,__type_0,__type_1)
OClib.a(Record.o)

void std::vector said:
::__insert_aux(OC::ColumnData*,const OC::ColumnData&) OClib.a(Record.o)

My compiler data
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-09 2002/07/17

Thanks,
Ihor Kinal
 
B

Ben Pope

ikinal said:
I'm getting undefined symbols when I try to put my objects
in a static lib, but when I link all the objects with my main test
program, everything works fine...

<snip>

My compiler data
CC: Sun WorkShop 6 update 2 C++ 5.3 Patch 111685-09 2002/07/17

Probably best to go somewhere that toolchain is topical. Linking and
static libs are platform specific.

Ben Pope
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,373
Latest member
Desiree036

Latest Threads

Top