Re: [Interest] Using std::string in android projects

2016-01-05 Thread Thiago Macieira
On Monday 04 January 2016 23:11:09 Jason H wrote: > Well there is a library that depends on the std::string class. I then use > std::string to shuffle data into and out of the library, using > QString/QByteArray as appropriate. stlport, unlike libc++, is NOT able to be loaded into the same process

Re: [Interest] Using std::string in android projects

2016-01-04 Thread Jason H
> That's the std::terminate's default handler. That handler is called when an > exception is thrown but not caught. What exception was thrown? Can you put a > catch block to see what it was? I tried that, but it is crashing in not-my-code. I wrapped the areas with try/catch where I use the std

Re: [Interest] Using std::string in android projects

2015-12-31 Thread Thiago Macieira
On Thursday 31 December 2015 16:29:41 Jason H wrote: > I'll gladly use whatever works. The answer on why I went that route is > because simply "that's what I found on the internet". > > Could you tell me what I need to change to get std::strings working with > libstdc++? No clue. I don't develop

Re: [Interest] Using std::string in android projects

2015-12-31 Thread Jason H
Obligatory RTFM: http://stackoverflow.com/questions/11662644/compile-ndk-code-using-gnu-libstd[http://stackoverflow.com/questions/11662644/compile-ndk-code-using-gnu-libstdc]   I read that, but I don't know how it relates to Qt projects. I'm not using an Android.mk as far as I can tell, I'm just

Re: [Interest] Using std::string in android projects

2015-12-31 Thread Jason H
> Sent: Wednesday, December 30, 2015 at 6:48 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] Using std::string in android projects > > On Wednesday 30 December 2015 23:05:02 Jason H wrote: > > I'm trying to use a libra

Re: [Interest] Using std::string in android projects

2015-12-30 Thread Diego Iastrubni
On Thu, Dec 31, 2015 at 1:48 AM, Thiago Macieira wrote: > On Wednesday 30 December 2015 23:05:02 Jason H wrote: > > I'm trying to use a library that uses std::strings. However when the > string > > is assigned, I get a crash at 0xdeadcab1 (see > > > https://android.googlesource.com/platform/ndk/+

Re: [Interest] Using std::string in android projects

2015-12-30 Thread Thiago Macieira
On Wednesday 30 December 2015 23:05:02 Jason H wrote: > I'm trying to use a library that uses std::strings. However when the string > is assigned, I get a crash at 0xdeadcab1 (see > https://android.googlesource.com/platform/ndk/+/bfa632c/sources/cxx-stl/gab > i++/src/terminate.cc#52) That's the st

[Interest] Using std::string in android projects

2015-12-30 Thread Jason H
I'm trying to use a library that uses std::strings. However when the string is assigned, I get a crash at 0xdeadcab1 (see https://android.googlesource.com/platform/ndk/+/bfa632c/sources/cxx-stl/gabi++/src/terminate.cc#52) I think this is because I am improperly linking the library. Can anyone te