• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Linker Errors when using std::string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Linker Errors when using std::string
      • From: Chris Rudolph <email@hidden>
  • Prev by Date: A Stupid Question
  • Next by Date: Re: A Stupid Question
  • Previous by thread: Re: A Stupid Question
  • Next by thread: Re: Linker Errors when using std::string
  • Index(es):
    • Date
    • Thread