You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context:
I've set the APP_CPPFLAGS to -std=c++20 and APP_STL to c++_shared in my CMakeList.txt file. I am using NDK version 27.0.11902837 but this happens with any NDK that should support C++17 (NDK 26 too)
The documentation indicates that libc++ should support modern C++ features, but it seems std::execution might not be supported.
How can I resolve this error and successfully compile my program using the Android NDK?
Is there any specific configuration or additional steps required to enable support for std::execution?
I'm using CMake for building the project
Affected versions
r26, r27
Canary version
No response
Host OS
Mac
Host OS version
macOS 14.5
Affected ABIs
arm64-v8a
Build system
CMake
Other build system
No response
minSdkVersion
24
Device API level
24
The text was updated successfully, but these errors were encountered:
Yes, unfortunately. We can't do any better than LLVM does. If you're like a lot of Android developers and would be porting to iOS as well, they won't have it either.
Closing as there isn't work for us to do aside from the regular updates from upstream.
Description
I'm trying to compile a C++ program using the Android NDK that relies on the C++17 feature std::execution.
During the build process, I encounter the following errors:
Sample Program:
Compilation Command:
Context:
I've set the APP_CPPFLAGS to -std=c++20 and APP_STL to c++_shared in my CMakeList.txt file. I am using NDK version 27.0.11902837 but this happens with any NDK that should support C++17 (NDK 26 too)
The documentation indicates that libc++ should support modern C++ features, but it seems
std::execution
might not be supported.How can I resolve this error and successfully compile my program using the Android NDK?
Is there any specific configuration or additional steps required to enable support for std::execution?
I'm using CMake for building the project
Affected versions
r26, r27
Canary version
No response
Host OS
Mac
Host OS version
macOS 14.5
Affected ABIs
arm64-v8a
Build system
CMake
Other build system
No response
minSdkVersion
24
Device API level
24
The text was updated successfully, but these errors were encountered: