Re: Linker Errors when using std::string
Re: Linker Errors when using std::string
- Subject: Re: Linker Errors when using std::string
- From: Chris Rudolph <email@hidden>
- Date: Tue, 16 Oct 2001 06:54:21 -0700
Ben,
You need to use the "Add Files..." to add the stdc++ library. Point it
to /usr/lib/gcc/darwin/2.95.2/libstdc++.a and everything should work.
Cheers,
Chris.
--
Chris Rudolph, AppleWorks Engineering
Apple Computer, Inc.
email@hidden
On Monday, October 15, 2001, at 11:41 PM, Ben Jansen wrote:
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