Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

undefined symbol when using -c compiling option

807575Aug 16 2006 — edited Oct 17 2007
{
std::vector<int> v;
v.push_back(1);
}


after I compile the code above in a library using the -c option and I run nm -u I see an undefined symbol:
__1cDstdGvector4Cin0AJallocator4Ci___M__insert_aux6Mpirki_v_

The library is loaded using dlopen by an external executable. The executable crashes and my guess is that it happens because of that symbol. Any suggestions are most welcome. Thank you.

Message was edited by:
oulisee
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2007
Added on Aug 16 2006
7 comments
329 views