天天看點

error LNK2001:無法解析的外部符号 __imp____glewCreateShader

原部落格:http://blog.csdn.net/cgcoder/article/details/8040965

1>main.obj : error LNK2001: unresolved external symbol __imp____glewAttachShader
1>main.obj : error LNK2001: unresolved external symbol __imp____glewCreateProgram
1>main.obj : error LNK2001: unresolved external symbol __imp____glewShaderSource
1>main.obj : error LNK2001: unresolved external symbol __imp____glewCreateShader      
解決辦法:      
In case anyone runs into the same problem:
In VC++, click View>Propery Pages...
Expand Configuration Properties>Linker>Input
add glew32.lib (for example) to the Additional Dependencies box.      

繼續閱讀