我正在尝试将android ndk c ++代码从32位转换为64位。但是在编译时会遇到与64位相关的错误。以下是链接过程中的错误:
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::canonical(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__xstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::canonical(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__errno_location'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::symlink_status(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__lxstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::symlink_status(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__errno_location'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::read_symlink(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__errno_location'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::read_symlink(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__errno_location'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::copy_directory(boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__xstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::copy_file(boost::filesystem::path const&, boost::filesystem::path const&, boost::filesystem::detail::copy_option, boost::system::error_code*): error: undefined reference to '__xstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::create_directories(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__xstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::permissions(boost::filesystem::path const&, boost::filesystem::perms, boost::system::error_code*): error: undefined reference to '__lxstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesstem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::remove(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__lxstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesstem.a(operations.o):libs/filesystem/src/operations.cpp:function boost::filesystem::detail::remove_all(boost::filesystem::path const&, boost::system::error_code*): error: undefined reference to '__lxstat64'
/opt/boost_1_59_0_android_x86_64/libs/libFramework.ThirdParty.Boost.Filesystem.a(path.o):libs/filesystem/src/path.cpp:function boost::filesystem::path::codecvt(): error: undefined reference to 'std::codecvt<wchar_t, char, __mbstate_t> const& std::use_facet<std::codecvt<wchar_t, char, __mbstate_t> >(std::locale const&)'
collect2: error: ld returned 1 exit status
make: *** [all] Error 2
Here是提升构建输出的链接。