Boost-for-Android-Prebuilt | Boost v1.53.0 prebuilt libraries | Machine Learning library
kandi X-RAY | Boost-for-Android-Prebuilt Summary
kandi X-RAY | Boost-for-Android-Prebuilt Summary
Prebuilt Boost libraries for 1.53, built for arm,armv7,x86.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Boost-for-Android-Prebuilt
Boost-for-Android-Prebuilt Key Features
Boost-for-Android-Prebuilt Examples and Code Snippets
Community Discussions
Trending Discussions on Boost-for-Android-Prebuilt
QUESTION
I am currently trying to use the boost::regex library in my Android native lib on Android Studio. But I get this two linker errors:
F:\Tools\dev\Android\ndks\crystax-ndk-10.3.2/sources/boost/1.64.0/include/boost/regex/v4/regex_search.hpp:56: error: undefined reference to 'boost::re_detail_106400::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator<__gnu_cxx::__normal_iterator, std::allocator > > > >, boost::regex_traits > >::find()'
F:\Tools\dev\Android\ndks\crystax-ndk-10.3.2/sources/boost/1.64.0/include/boost/regex/v4/perl_matcher.hpp:383: error: undefined reference to 'boost::re_detail_106400::perl_matcher<__gnu_cxx::__normal_iterator, std::allocator > >, std::allocator<__gnu_cxx::__normal_iterator, std::allocator > > > >, boost::regex_traits > >::construct_init(boost::basic_regex > > const&, boost::regex_constants::_match_flags)'
I am using the crystax-ndk (10.3.2) to compile my native c++ code. The boost library is version 1.64.0 and I use the precompiled static libs from here.
My build.gradle looks like this:
...ANSWER
Answered 2018-May-22 at 09:14I fixed my problem by changing from crystax to Android NDK r16b with CMake and setting the std
lib to c++11
.
In the build.gradle
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Boost-for-Android-Prebuilt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page