Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can I use experimental filesystem in ndk with libc++

I'm trying to use experimental filesystem in an android project with ndk r17 and I'm using STL c++_static but I got this :

undefined reference to `std::experimental::filesystem::v1::__current_path(std::__ndk1::error_code*)'

I show some topics that suggest adding -lstdc++fs to the linker arguments but the linker can't find this library

does current ndk support this experimental feature or not ?

like image 868
dev65 Avatar asked Aug 23 '18 18:08

dev65


1 Answers

Not yet: https://github.com/android-ndk/ndk/issues/609

Support for it is coming, but the libc++ tests are going to require some effort to get working for Android (the std::filesystem tests are not particularly cross-compile friendly) and I haven't had the time to do that yet.

like image 145
Dan Albert Avatar answered Oct 15 '22 09:10

Dan Albert