简体   繁体   English

我可以在 ndk 和 libc++ 中使用实验文件系统吗

[英]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 :我正在尝试在带有 ndk r17 的 android 项目中使用实验性文件系统,并且我正在使用 STL c++_static 但我得到了这个:

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我展示了一些建议将 -lstdc++fs 添加到链接器参数的主题,但链接器找不到这个库

does current ndk support this experimental feature or not ?当前的 ndk 是否支持此实验性功能?

Not yet: https://github.com/android-ndk/ndk/issues/609 尚未: 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. 即将支持它,但是libc ++测试将需要一定的努力才能在Android上正常工作( std::filesystem测试并不是特别适合交叉编译),而我还没有时间这样做。

如果支持降落,请有人在这里ping我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM