Cryptlex Forums

C++11 support on MacOS

A
Andrew N Markin

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?

C
Cryptlex Support

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.

A
Andrew N Markin

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

A
Andrew N Markin

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

A
Adnan KamiliCryptlex team

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

A
Andrew N Markin

Great. Thank you!

← Back to all topics · 6 posts · 1336 views · opened 2017-05-31