问题
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