Re: Strange problems using std::string and C++0x
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 22:54:03 -0800
On Jan 3, 2014, at 9:55 PM, Steve Mills <email@hidden> wrote:
> On Jan 3, 2014, at 21:11:28, Marshall Clow <email@hidden> wrote:
>
>> 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.
>
> Hmm, interesting idea. The code I'm dealing with is all in the main app, and it's all called directly from main during launch. Are you suggesting that some linked in libs might be using libstdc++, and that could cause problems when making calls to std::string,
Yes, that’s what I’m suggesting. (However, I want to reiterate that this is a *guess*)
> even though none of the linked libs should be executing at this point in the launch?
Though that makes it less likely.
>
> This all might be a red herring, as I've temporarily commented out or replaced any C++0x stuff in this new code drop from a 3rd party and gone back to libstdc++, and I'm still getting the crashes when destructing std::strings. But I will check all subprojects and see if any of them are using a different std lib, which *could* explain these problems.
Good luck.
— 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