But there are some error when using libmcl.so to compile my project.
/home/luopeng/my_sec_data/jni/include/mcl/fp.hpp:530: error: undefined reference to 'mcl::fp::detectIoMode(int, std::__ndk1::ios_base const&)'
/home/luopeng/my_sec_data/jni/include/mcl/fp_tower.hpp:474: error: undefined reference to 'mcl::fp::detectIoMode(int, std::__ndk1::ios_base const&)'
Then I notice that detectIoMode is under a macro. So I add the following compile option.
LOCAL_CPPFLAGS += -DCYBOZU_DONT_USE_STRING
But it fails to generate the libmcl.so.
/home/luopeng/mcl/mcl/jni/include/mcl/gmp_util.hpp:714:45: error: too few arguments to function call, expected at least 3, have 2
printf("\"%s\",\n", mcl::gmp::getStr(p, 16).c_str());
~~~~~~~~~~~~~~~~ ^
Hi, how could I compile a shared library with the full code using ndk? Thanks.
** Why I ask I need to use MCL with my project. So the following code is used first, it succeeds to generate
libmcl.so
.But there are some error when using
libmcl.so
to compile my project.Then I notice that
detectIoMode
is under a macro. So I add the following compile option.But it fails to generate the
libmcl.so
.So, do you have any advice? thanks.