Skip to content

VC2012 compiler issues with min/max #557

@siddharthuniv

Description

@siddharthuniv

Hi,

I use windows 7 x64, visual studio 2012.

I have a large project and wanted to use glm for our project. However, glm.hpp includes header file: #include "detail/_fixes.hpp" which undefs min and max macro. If my project using glm is included, then other projects that use the macro that comes with the windows SDK is broken. For now, i tried commenting out including _fixes.hpp and renamed the min function usage inside of glm. And everything seems to compile fine. Could you suggest if theres something that can be done on your side, or anything that can be done on my side so that i dont need to edit glm headers?

Thank you,

Sid

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions