-
Notifications
You must be signed in to change notification settings - Fork 64
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
Not able to use std math #143
Comments
|
C++23? Then why std::round is defined in math.h in powerpc64-ps3-elf/include/c++/7.2.0/? |
gcc likes to throw non-standard stuff in. Sometimes they become standard after a while. :-) |
Oh I see... |
|
Okay I'm trying to compile the toolchain with the PR. Will see if filesystem call are found after this. Do you have an idea how to fix the to_string? I really have no idea how to fix this kind of problem ahah |
Well, using a newer newlib might help; the one we use now is 12 years old so there might be new stuff that libstdc++ can use in newer versions. |
Oh I see. Can I expect an update of the ps3 newlib version in the future? |
Honestly I wouldn't get my hopes up for someone to spend work on something which might fix a minor issue they're not affected by themselves, and which may introduce regressions. If you do the work and there are no regressions, I expect it could be merged. Personally I'd just use
😸 |
Thanks for the code, but unfortunately I can't go any further, I was going to add ps3 support to a game engine, but if I have to modify the engine and libraries to correct the missing functions, it's going to be hard and long ahah 😅 |
Nothing worth doing is ever not "hard and long" ahaha Honestly, porting a newer newlib would be your first best step, and the least pain, than trying to backport a set of libraries/engines built on a newer standard. |
Yeah you're probably right, but it's just that I've never modified an sdk and I think that it's not just by copying the latest version of newlib that it will work, there will be modifications to make on it 🤔 |
Yes. Or at the very least the modifications we have already done may need updating to work with the new version. Updating newlib is a bit more hassle than updating gcc because PSL1GHT interacts directly with it to inject platform specific functionality. |
Hello, I'm trying to use C++ math functions like
std::round
.But it's not working , I'm getting
error: 'std::round' has not been declared
. I checked the math.h and I saw_GLIBCXX_USE_C99_MATH_TR1
and_GLIBCXX_USE_C99_MATH
. So I tried to add those flags and now I'm getting new error like:/usr/local/ps3dev/ppu/powerpc64-ps3-elf/include/c++/7.2.0/cmath:1164:11: error: '::log2l' has not been declared
How can I fix this? Thanks!
The text was updated successfully, but these errors were encountered: