#include “glm/ext.hpp” makes the compiler report a __declspec(align('16')) won't be aligned

蓝咒 提交于 2019-12-13 01:00:55

问题


I get the compiler error __declspec(align('16')) won't be aligned.

When I click the error, Visual Studio sends me to GLM_IMPLEMENT_SCAL_MULT(vec4), which is on the scalar_multiplication.hpp file.

What is the cause for this compiler error? How can I fix it?


Note: Could it be some kind of conflict with the includes? I have several includes in a header file. The commented one is the one that gives the error.

// OpenGL Math library
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
//#include "glm/ext.hpp" // For printing matrices

#include <SFML/Graphics.hpp>
#include <GL/glew.h>

来源:https://stackoverflow.com/questions/28023412/include-glm-ext-hpp-makes-the-compiler-report-a-declspecalign16-wont

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!