Visual Studio-error LNK2001 unresolved external symbol __imp__glBegin

Visual Studio-error LNK2001 unresolved external symbol __imp__glBegin
Visual Studio-error LNK2001 unresolved external symbol __imp__glBegin

將代碼移稙去WIN10, 係Visual Studio报

error LNK2001: 無法解析的外部符號 __imp_glBegin

調用OpenGL函式,冇鏈结OpenGL庫引起, 係『.H』文檔加入下列代碼即可.

#pragma comment(lib, “OpenGL32.lib”)
#pragma comment(lib, “GLu32.lib”)

評論