2016-05-01 113 views
0

所以这不是我第一次遇到了这个问题,但是,在过去工作的解决方案似乎并不奏效。我目前收到以下错误:未解决的外部符号链接到glew32s.lib

Error LNK1120 6 unresolved externals 
Error LNK2019 unresolved external symbol [email protected] referenced in function [email protected] 
Error LNK2019 unresolved external symbol [email protected] referenced in function [email protected] 
Error LNK2019 unresolved external symbol [email protected] referenced in function __glewInit_GL_3DFX_tbuffer 
Error LNK2019 unresolved external symbol [email protected] referenced in function "public: void __thiscall vortex::graphics::Window::clear(void)const " ([email protected]@[email protected]@@QBEXXZ) 
Error LNK2019 unresolved external symbol [email protected] referenced in function "private: bool __thiscall vortex::graphics::Window::init(void)" ([email protected]@[email protected]@@AAE_NXZ) 
Error LNK2019 unresolved external symbol [email protected] referenced in function "void __cdecl vortex::graphics::windowResize(struct GLFWwindow *,int,int)" ([email protected]@[email protected]@[email protected]@[email protected]) 

给你的东西我已经尝试了破败的,我已经检查和复查的连结路径到库,我已经把GLEW_STATIC预处理器定义的必要部分,我多次重新加载库以确保我将Win32库链接到Win32应用程序,并且我不知道现在要做什么。它工作得很好,上面的解决方案总是能解决这种错误,但现在还没有。我越早得到回应越好,因为这是一个项目,我希望尽快完成更多的工作。感谢您给我的任何帮助。

回答

0

将OpenGL32.lib和glu32.lib添加到您的链接器输入中。

0

我有一个非常类似的问题我自己,对我来说是添加glew32.dll到该文件夹​​,以及添加#pragma comment(lib, "glew32.lib")并链接到它的解决方案。 glew32.dll将引用glew32.lib,所以如果你没有它,它会发出类似的链接错误。