RE: Linker Errors when using std::string
RE: Linker Errors when using std::string
- Subject: RE: Linker Errors when using std::string
- From: "Smith, Bradley" <email@hidden>
- Date: Tue, 16 Oct 2001 09:28:57 +0100
Looks like it's not finding the required library to link in. I know that you
can "Add a framework" on PB. Maybe this works for standard C++ libraries
too?
Brad
>
-----Original Message-----
>
From: Ben Jansen [mailto:email@hidden]
>
Sent: 16 October 2001 07:41
>
To: Cocoa Dev
>
Subject: Linker Errors when using std::string
>
>
>
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
>
_______________________________________________
>
cocoa-dev mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev