Linker Errors when using std::string
Linker Errors when using std::string
- Subject: Linker Errors when using std::string
- From: Ben Jansen <email@hidden>
- Date: Mon, 15 Oct 2001 23:41:27 -0700
Hey everyone,
I'm taking advantage of 10.1s ObjC++ and using the std::string C++ class
within my app. Mostly because I'm lazy and I don't want to code my own
ASCII text class. ;P
Anyways, everything is compiling fine, but I can't run the program to
test it--the linking fails. Here's my error:
/usr/bin/ld: warning prebinding disabled because of undefined symbols
/usr/bin/ld: Undefined symbols:
_assign__t18string_char_traits1ZcRcRCc
_copy__t18string_char_traits1ZcPcPCcUl
_eos__t18string_char_traits1Zc
_length__t18string_char_traits1ZcPCc
_move__t18string_char_traits1ZcPcPCcUl
_set__t18string_char_traits1ZcPcRCcUl
I'm guessing that these have to do with the std::string class; however,
I've no idea what this error means exactly (can't find the string class'
member functions?), nor do I know what I can do to fix it. Any ideas?
Thanks,
Ben Jansen