我在代码中包含了一些GLM文件,并且收到了大量错误(至少有90个错误)。为什么会这样,我不知道。我正在使用最新的GLM(撰写本文时为0.9.3.3)。我也在Windows上使用Qt Creator,你会看到一个QMake文件。
我还应该注意到,我最终将glm文件夹复制到我的mingw文件夹中的include目录。
我该怎么做才能解决这个问题?
QMAKE
CONFIG += console
HEADERS += \
util.hpp \
ShaderComparable.hpp \
SearchTree.hpp \
FileUtility.hpp \
Debug.hpp \
ShaderHandler.hpp \
Shader.hpp \
Testing.hpp \
Sphere.hpp \
Shape.hpp \
Circle.hpp \
Maths.hpp
SOURCES += \
util.cpp \
ShaderComparable.cpp \
SearchTree.inl \
Main.cpp \
FileUtility.cpp \
Debug.cpp \
ShaderHandler.cpp \
Testing.cpp \
Sphere.cpp \
Shape.cpp \
Circle.cpp
win32:LIBS += -llibEGL -llibGLESv2
unix: LIBS += -lEGL -lGLESv2
QMAKE_CXXFLAGS += -std=c++0x -U__STRICT_ANSI__
错误
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp: In instantiation of 'glm::detail::tvec4<glm::detail::half>::<anonymous union>':
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:82: instantiated from 'glm::detail::tvec4<glm::detail::half>'
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./gtc/swizzle.hpp:114: instantiated from here
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::r' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::r' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::g' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::g' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::b' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::b' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::a' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:79: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::a' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::s' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::s' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::t' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::t' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::p' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::p' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::q' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:80: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::q' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::x' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::x' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::y' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::y' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::z' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::z' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::w' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec4.hpp:81: error: member 'glm::detail::half glm::detail::tvec4<glm::detail::half>::<anonymous union>::<anonymous struct>::w' with copy assignment operator not allowed in union
mingw32-make.exe[1]: Leaving directory `C:/Programming/C++/Qt/qtesc/esc/Debug'
In file included from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type.hpp:40,
from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/glm.hpp:97,
from ../esc/Maths.hpp:3,
from ../esc/Sphere.hpp:5,
from ../esc/Sphere.cpp:1:
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp: In instantiation of 'glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>':
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:82: instantiated from 'glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >'
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./virtrev/xstream.hpp:92: instantiated from here
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::b' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::b' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::b' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::p' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::p' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::p' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::z' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::z' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec3.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec3<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::z' with copy assignment operator not allowed in union
In file included from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type.hpp:39,
from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/glm.hpp:97,
from ../esc/Maths.hpp:3,
from ../esc/Sphere.hpp:5,
from ../esc/Sphere.cpp:1:
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp: In instantiation of 'glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>':
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:82: instantiated from 'glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >'
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./virtrev/xstream.hpp:92: instantiated from here
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::r' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:79: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::g' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::s' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:80: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::t' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::x' with copy assignment operator not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with constructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with destructor not allowed in union
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/glm/glm/./core/type_vec2.hpp:81: error: member 'std::basic_ostream<char, std::char_traits<char> > glm::detail::tvec2<std::basic_ostream<char, std::char_traits<char> > >::<anonymous union>::<anonymous struct>::y' with copy assignment operator not allowed in union
答案 0 :(得分:1)
我有这个问题。这是因为glm不适用于-std = c ++ 0x。你必须使用c ++ 98。
答案 1 :(得分:0)
我修正了大部分错误,不包括glm/ext.hpp
,因为这似乎是造成损害的原因。如果有人知道为什么会发生这种情况,那么很高兴收到你的消息。