keywords: OpenGL building error

error C2027: use of undefined type ‘glm::tvec4<float,0>’
error C2027: use of undefined type 'glm::tvec4<float,0>'

Caused by:
Include only one header:<glm/detail/type_vec.hpp>

Solution:
Include <glm/glm.hpp> instead of <glm/detail/type_vec.hpp>.

error LNK2019: unresolved external symbol __imp_glewInit
error LNK2019: unresolved external symbol __imp_glewInit referenced in function

Caused by:
By default, compiler will link shared library for glew if you didn’t specify linking method.

Solution:
Add #define GLEW_STATIC if using static library (default).


就投机钻营来说,世故的价值永远是无可比拟的。 -《死魂灵》