Question

C++ is not currently one of my main languages - still learning. . . (so go easy on me). .

I'm setting up Poco on iOS. . . It works when I link against Gnu C++ standard library, but when linking against LLVM standard library I get a bunch of errors - unable to find std::string. . .

Does it work with llvm standard lib?

Does it work with C++11 (interesting questin, but not that important since I'm also interested in targeting Android and using Poco for the Threading).

Was it helpful?

Solution

We have built static libraries that work for both iOS, and also for Android: using the Android platform notes presented here

Minor edits to the code should make poco work using stlport_static. but using gnustl_static works out of the box.

the iOS static library work out of the box in Xcode using: c-dialect:GNU99, c++-dialect GNU++11, C++-library libc++ and the LLVM 4.2 compiler.

GCC_C_LANGUAGE_STANDARD = gnu99
CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
CLANG_CXX_LIBRARY = libc++

(One tiny edit might be needed on version 1.51 of poco for iOS and Android, if stl-library version you have is different from the std:: namespace used in Poco).

OTHER TIPS

Depends which version you use, 1.5.1 release should work (see https://github.com/pocoproject/poco/issues/46 ). I don't think the fix was backported to 1.4.x

Since there were no other answers, answering based on the advice from the comments:

As of Jan, 2013, it will work with C++11 dialect, but it doesn't seem to like the llvm std lib. . Gnu std lib works.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top