Mathias, thanks for reply! I’ve made, what you suggested, but I’ve got:
arm-linux-androideabi-g++: error: unrecognized command line option '-stdlib=libc++'
I’ve dived into android docs a little bit, and created standalone toolchain with libc++ with this command:
build/tools/make-standalone-toolchain.sh --platform=android-14 --arch=arm --system=windows-x86_64 --install-dir=../toolchain --stl=libc++
And then tried to compile and link my code like this:
./bin/arm-linux-androideabi-g++.exe -c -I{path_to_project}/gpgservices/include -std=c++11 -{path_to_project}/gpgservices/src/gpgservices_test.cpp
./bin/arm-linux-androideabi-g++.exe -L{path_to_project}/gpgservices/lib/armv7-android gpgservices_test.o -lgpg -lz -lc++_shared
And that worked!
Then I’ve tried to pass c++_shared to build server like this
flags: ["-std=c++11", "-lc++_shared"]
and this:
libs: ["c++_shared"]
but I’ve got error about unrecognized options.
So is there a way to pass libc++ to build server as a standard library?