Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android NDK : no type named 'exception_ptr' in namespace 'std' #302

Open
Arman92 opened this issue Dec 28, 2016 · 4 comments
Open

Android NDK : no type named 'exception_ptr' in namespace 'std' #302

Arman92 opened this issue Dec 28, 2016 · 4 comments

Comments

@Arman92
Copy link

Arman92 commented Dec 28, 2016

It seams that that android ndk's default toolchain does not support exception_ptr (I'm targeting armeabi-v7a)

output error that I'm getting:
RxCpp/Rx/v2/src/rxcpp/rx-subscriber.hpp:78:37: error: no type named 'exception_ptr' in
namespace 'std'; did you mean 'exception'?

what do you suggest?

@Arman92
Copy link
Author

Arman92 commented Dec 28, 2016

@kirkshoop
Copy link
Member

This was also reported in #239

Android was working since #184 was resolved by adding PTHREAD support. There was a working example.

I am surprised that exception_ptr is now an issue. I assume that boost::exception is still an option, but would need a PR for rxcpp to support that.

The pages you linked to were useful.

this answer seems promising.

To anyone wandering here, you can now pick a different STL provided in the NDK
to solve this issue, libc++ for instance. Passing --stl=libc++ to
make-standalone-toolchain.sh did the trick in my case.

this answer is also relevant

We're working on getting libc++ into shape rather than fixing libstdc++.

@Arman92
Copy link
Author

Arman92 commented May 1, 2017

Any updates on this issue? Have you tried again with Android NDK?

@Nadav-Ruskin
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants