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

Visual Studio compile errors with #define GLM_ENABLE_EXPERIMENTAL #884

Closed
alicint opened this issue Mar 29, 2019 · 1 comment
Closed

Visual Studio compile errors with #define GLM_ENABLE_EXPERIMENTAL #884

alicint opened this issue Mar 29, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@alicint
Copy link

alicint commented Mar 29, 2019

in one file in my project I needed to use hash.hpp and when I included it with:

#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/hash.hpp>

now the file random.inl fails to compile in visual studio (only).
the errors are:


Error	C2059	syntax error: ')'	glm\glm\gtc\random.inl	181	
Error	C2062	type 'unknown-type' unexpected	glm\gtc\random.inl	181	
Error	C2144	syntax error: 'unknown-type' should be preceded by '(' glm\gtc\random.inl	181	
Error	C2589	'(': illegal token on right side of '::'	glm\gtc\random.inl	181	

I tried undefining the flag immediately after hash.hpp included like this and it didn't work.

#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/hash.hpp>
#undef GLM_ENABLE_EXPERIMENTAL
@Groovounet
Copy link
Member

This issue should be fixed in master branch for GLM 0.9.9.5 release.

Thanks

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

No branches or pull requests

2 participants