Include Boost C++ library in android

前端 未结 1 1646
我寻月下人不归
我寻月下人不归 2020-12-13 15:14

I have been trying to marry Boost and android on windows for long time and tried lot of approaches but still no luck. I want to make a sample program using Boost library in

相关标签:
1条回答
  • 2020-12-13 15:44

    My question contained almost complete steps for including BOOST library in Android. But still there are some important points you should remember while working with this.

    • Delete auto generated obj and libs folder Each time before you compile your native code.

    • If you are going to write your native code in C++, add LOCAL_CPP_EXTENSION := .cpp to your Android.mk(jni/Android.mk) file.

    • if you are going to code in C++, put your all cpp code inside extern "C" {}.

      extern C { /*cpp code*/ }

    0 讨论(0)
提交回复
热议问题