0
我安裝GLEW庫到Visual Studio:
X64 /斌/ glew32.dll到%SYSTEMROOT%/ SYSTEM32
X64/lib中/ glew32.lib爲{VC根}/lib目錄
包括/ GL/glew.h爲{VC根} /包含/ GL
包括/ GL/wglew.h爲{VC根} /包含/ GL
錯誤加載GLEW庫(錯誤LNK2001)
並添加鏈接庫>輸入:glew32.lib並寫入#pragma comment
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glut32.lib")
#pragma comment(lib, "glew32.lib")
#include <iostream>
#include <windows.h>
#include <glew.h>
#include <glut.h>
但Visual Studio繼續寫錯誤:
1>Core.obj : error LNK2001: unresolved external symbol __imp____glewBindVertexArray
1>Core.obj : error LNK2001: unresolved external symbol __imp____glewGenVertexArrays