#include" glm / ext.hpp"使编译器报告__declspec(对齐(' 16'))不会被对齐

时间:2015-01-19 11:18:15

标签: c++ opengl sfml glm-math

我收到编译错误__declspec(align('16')) won't be aligned

当我单击错误时,Visual Studio会将我发送到scalar_multiplication.hpp文件上的GLM_IMPLEMENT_SCAL_MULT(vec4)

此编译器错误的原因是什么?我该如何解决?


注意:它可能与包含有某种冲突吗?我在头文件中有几个包含。评论的是给出错误的那个。

// 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>

0 个答案:

没有答案