【发布时间】:2016-08-26 00:05:45
【问题描述】:
所以这不是我第一次遇到这个问题,但过去有效的解决方案似乎不起作用。我目前收到以下错误:
Error LNK1120 6 unresolved externals
Error LNK2019 unresolved external symbol __imp__glGetString@4 referenced in function _glewContextInit@0
Error LNK2019 unresolved external symbol __imp__wglGetCurrentDC@0 referenced in function _wglewGetExtension@4
Error LNK2019 unresolved external symbol __imp__wglGetProcAddress@4 referenced in function __glewInit_GL_3DFX_tbuffer
Error LNK2019 unresolved external symbol __imp__glClear@4 referenced in function "public: void __thiscall vortex::graphics::Window::clear(void)const " (?clear@Window@graphics@vortex@@QBEXXZ)
Error LNK2019 unresolved external symbol __imp__glEnable@4 referenced in function "private: bool __thiscall vortex::graphics::Window::init(void)" (?init@Window@graphics@vortex@@AAE_NXZ)
Error LNK2019 unresolved external symbol __imp__glViewport@16 referenced in function "void __cdecl vortex::graphics::windowResize(struct GLFWwindow *,int,int)" (?windowResize@graphics@vortex@@YAXPAUGLFWwindow@@HH@Z)
为了让您了解我的尝试,我已经检查并重新检查了库的链接路径,我已将 GLEW_STATIC 预处理器定义放在必要的部分,我已多次重新下载库以确保我是将 Win32 库链接到 Win32 应用程序,我现在不知道该怎么做。它工作了一段时间,上面的解决方案总是能解决这种错误,但这次不行。我越早得到回应越好,因为这是一个我想尽快完成更多工作的项目。谢谢你能给我的任何帮助。
【问题讨论】:
标签: c++ glew unresolved-external