我尝试使用以下b2命令参数在Android NDK 10e中使用Clang构建boost 1.54:
\ b2 --toolset = clang --user-config =。/ user-config-android.jam cxxflags =" -std = c ++ 11 -stdlib = libc ++ -IC:/ android-ndk-r10e / platforms / android-9 / arch-arm / usr / include -IC:/ android-ndk-r10e / sources / cxx-stl / llvm-libc ++ / libcxx / include -IC:/机器人-NDK-r10e /源/ CXX-STL / LLVM-的libc ++ ABI / libcxxabi /包括" LINKFLAGS =" -stdlib = libc的++" threadapi =并行线程 --prefix = .. \ boost_android_arm --builddir =。/ target-os = linux --with-date_time --with-filesystem --with-regex --with-log define = BOOST_FILESYSTEM_VERSION = 3 --with-program_options --with-signals --with-system --with-thread link = static runtime-link = shared threading = multi install
我收到很多错误,但最初的错误是:
C:/android-ndk-r10e/sources/cxx-stl/llvm-libc++/libcxx/include\string:1371:5: error: unknown type name '_LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49'
_LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string()
^
C:/android-ndk-r10e/sources/cxx-stl/llvm-libc++/libcxx/include\string:1371:44: error: member 'basic_string' has the same name as its class
_LIBCPP_INLINE_VISIBILITY_EXCEPT_GCC49 basic_string()
我应该注意到我已经成功构建了gcc 4.4的增强功能。任何帮助将不胜感激。