Skip to content
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

Failing to compile (+ the solution) #1

Open
RetroDev64 opened this issue Nov 18, 2021 · 3 comments
Open

Failing to compile (+ the solution) #1

RetroDev64 opened this issue Nov 18, 2021 · 3 comments

Comments

@RetroDev64
Copy link

As of now the project cannot be compiled because the standard library isn't imported.

For that to be fixed, Headers/Global.hpp should be changed to this:

#include <cmath>
#include <algorithm>

... the rest of the code
@hklsb
Copy link

hklsb commented Jan 23, 2022

I get this on Windows 10x64 Visual Studio
Error C2039 : 'clamp': is not a member of 'std'

@RetroDev64
Copy link
Author

Have you applied the solution?

I get this on Windows 10x64 Visual Studio Error C2039 : 'clamp': is not a member of 'std'

@hklsb
Copy link

hklsb commented Jan 24, 2022

I applied it but same error. So finally found out that clamp support is only from c++17. I was using c++14. Fixed! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants