-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
[devkitPPC] ::aligned_alloc is available, but not std::aligned_alloc #4
Comments
The same error occurs for me on linux, mingw64 and macOS with both g++ and clang suggesting this usage isn't portable. Where is this a problem? |
Further investigation shows -std=c++17 is necessary for my linux & macOS compilers to compile this test code
Still won't work with mingw64 and, from what I can see here, won't work with other newlib based toolchains without patching. I do have a fix for this though which I'll apply for next release. |
From inspecting the libstdc++v3 configuration scripts, I think it's simply missing a |
I'm reporting this here, since the gcc repo doesn't allow submitting issues.
In
devkitPPC/powerpc-eabi/include/c++/13.2.0/powerpc-eabi/bits/c++config.h
, the_GLIBCXX_HAVE_ALIGNED_ALLOC
macro is not defined, and that prevents the C functionaligned_alloc()
to be imported into the std namespace for C++ (incstdlib
).This code compiles:
but this doesn't:
The text was updated successfully, but these errors were encountered: