• 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
Re: Strange problems using std::string and C++0x
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange problems using std::string and C++0x


  • Subject: Re: Strange problems using std::string and C++0x
  • From: Marshall Clow <email@hidden>
  • Date: Fri, 03 Jan 2014 19:11:28 -0800

On Jan 2, 2014, at 2:23 PM, Steve Mills <email@hidden> wrote:

> Because of a recent change to 3rd party code, I had to change our project's C++ dialect to GNU++11 and the C++ standard lib to libc++. Now I'm getting odd crashes when dealing with std::string objects. All of the strings that crash so far are static members of C++ classes. Some were being inited at launch. I changed that behavior to init them lazily, which fixed that. Now others are crashing during normal operations during run. Just wondering if anyone else has experienced problems with std::string in libc++ or anything like that. Note that we still need to use the 10.7 sdk. I'm not sure if using a newer one would make a difference - I tried, but there are a couple things that I couldn't change in a quick and dirty way just to get it building. This is Xcode 5.0.2.

My *guess* is that some of your code is compiled using libstdc++, and the rest with libc++.
They each have an idea of the layout of a std::string object, and they differ.

— Marshall



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange problems using std::string and C++0x
      • From: Steve Mills <email@hidden>
References: 
 >Strange problems using std::string and C++0x (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Strange behavior of -Wfloat-equal on clang (Xcode 5)
  • Next by Date: Re: Connections Inspector sometimes omits Sent Actions
  • Previous by thread: Re: Strange problems using std::string and C++0x
  • Next by thread: Re: Strange problems using std::string and C++0x
  • Index(es):
    • Date
    • Thread