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

scalar_common.h has issues when compiling project using VS 2022 #1345

Open
juanchuletas opened this issue Feb 15, 2025 · 0 comments
Open

scalar_common.h has issues when compiling project using VS 2022 #1345

juanchuletas opened this issue Feb 15, 2025 · 0 comments

Comments

@juanchuletas
Copy link

I am setting my environment to build my game engine on windows. I installed glm using vcpkg, this install glm version 1.0.1. But when I try to build my project it fails, shows several errors, here is one of them:

template
GLM_FUNC_DECL T max(T a, T b, T c);

that is at the file scalar_common.h

it says: attribute "nodiscard" does not apply here

going to GLM_FUNC_DECL:

#define GLM_FUNC_DECL GLM_NODISCARD GLM_CUDA_FUNC_DECL.

also the same issue here:

template
GLM_FUNC_DECL T max(T a, T b, T c, T d);

Can somebody give a hand here?

P.S I am using C++17 to compile

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

1 participant