【opengL】glaux.h 库加载GlAux.lib的问题

来源:互联网 发布:mac os 10.8 升级 编辑:程序博客网 时间:2024/04/29 13:12
加载的包: "glaux.lib" 如出现以下情况:1>Linking...1>glaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey@4 referenced in function _GetRegistrySysColors@81>glaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _GetRegistrySysColors@81>glaux.lib(tk.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA@20 referenced in function _GetRegistrySysColors@8

 

解决方法如下:


QT 加载

在.pro中加载

LIBS += -lGlAux -ladvapi32

VS 加载

#param comment (lib,"glaux.lib")

#param comment (lib,"advapi32.lib")

原创粉丝点击