Open Nadav-Ruskin opened 6 years ago
std::rethrow_exception
should be a part of conforming C++11 standard library and is required to compile Catch2.
Should I report a bug here?
Probably.
In the meantime, you might want to try Catch Classic in the Catch1.x
branch, it still supports C++98.
Thank you for the suggestion. I'll see if applicable.
OK, this is a non-bug. https://github.com/android-ndk/ndk/issues/648 solved it. Apparently NDK has to use --stl libc++
for proper C++11 support.
FYI I have reproduced the same error using a gcc5 docker image with a conan cross compiling toolchain for armv7 (This image, which is based on the conan docker image for gcc5 on armv7), using single-header catch2 v2.0.1
Description
I can't cross-compile the header to Android. Tried NDK 13b, 14b, and 16b. Is Android missing an integral part of the library? If so, please add a disclaimer.
Steps to reproduce
1) Install NDK. For comfort, I started out with an image from dockcross. 2) Put
catch.hpp
in a directory. 3) Make hello_world.cpp in same directory:4) Compile, making sure to use the right flags.
Extra information