C++11 support on MacOS

Hello. I’m trying to integrate LexActivator into my application (C++/Qt on MacOS). I’m using C++11 by providing following CXX_FLAGS: -std=c++11 -stdlib=libc++ … and I’m getting compile errors like following:

std::string::find_last_of(char const*, unsigned long, unsigned long) const", referenced from:
GetApplicationDirectory() in libLexActivator.a(LexAbstraction.o)

From my previous experience I can make assumption that libLexActivator.a was compiled with different version of C++ standard libraries. My question is: Is there a way to integrate libLexActivator.a into application that uses C++11 STD libraries? Or maybe I’m doing something wrong?

Hi,

Static linking with C++ 11 using libc++ won’t work as LexActivator uses libstd++ in order to support Mac OSX 10.6. We will provide C++11 static builds from next release so that you can statically link with LexActivator. Till then you can use dynamic linking.

Sounds good. Maybe there is some ETA for next release?

Well… also I hope you’ll provide both versions - for libstdc++ as well as for libc++ … 'cause support for older versions of Mac OSX is a good idea in general :slight_smile: Thanks

Yes, we will provide both the builds. The ETA for next release is last week of June.

Great. Thank you!