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: Jesper Papmehl-Dufay <email@hidden>
- Date: Fri, 03 Jan 2014 11:25:14 +0100
I have gotten the same problems when using the libc++ library without using Clang/Apple LLVM compiler (instead using llvm gcc).
I never really figured out exactly what the cause was, but I think it was related to our usage of std::basic_string with a character type other than char or wchar (we use std::uint16_t), which as far as I know is unsupported, but usually works. In either case, as long as I used libc++ only when using clang, it worked.
HTH
/Jesper
2 jan 2014 kl. 23.23 skrev Steve Mills:
> 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.
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
>
>
>
> _______________________________________________
> 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
_______________________________________________
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