具有调试配置的GLFW控制台项目中的LNK4099 [英] LNK4099 in GLFW console project with debug configuration

查看:114
本文介绍了具有调试配置的GLFW控制台项目中的LNK4099的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2010 SP1中使用GLFW编译Win32控制台项目时,我收到以下调试配置警告:

When compiling a win32 console project with GLFW in Visual Studio 2010 SP1, I am getting the following warning for debug configuration:

Warnung 1   warning LNK4099: PDB "vc100.pdb" wurde nicht mit "GLFW.lib(enable.obj)" oder an "C:\path-to-project with-spaces\World\Debug\vc100.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.    C:\path-to-project with-spaces\World\World\GLFW.lib(enable.obj) World

还有13个GLFW.lib(enable.obj),GLFW.lib(glext.obj),GLFW.lib(image.obj),GLFW.lib(init.obj),GLFW.lib(input.obj) ,GLFW.lib(stream.obj),GLFW.lib(tga.obj),GLFW.lib(win32_enable.obj),GLFW.lib(win32_fullscreen.obj),GLFW.lib(win32_glext.obj),GLFW.lib( win32_init.obj),GLFW.lib(win32_time.obj),GLFW.lib(win32_window.obj),GLFW.lib(window.obj)

13 more for GLFW.lib(enable.obj), GLFW.lib(glext.obj), GLFW.lib(image.obj), GLFW.lib(init.obj), GLFW.lib(input.obj), GLFW.lib(stream.obj), GLFW.lib(tga.obj), GLFW.lib(win32_enable.obj), GLFW.lib(win32_fullscreen.obj), GLFW.lib(win32_glext.obj), GLFW.lib(win32_init.obj), GLFW.lib(win32_time.obj), GLFW.lib(win32_window.obj), GLFW.lib(window.obj)

最后但并非最不重要的:

And last but not least:

Fehler  15  error LNK1104: Datei "C:\path-to-project with-spaces\World\Debug\World.exe" kann nicht geöffnet werden. C:\path-to-project with-spaces\World\World\LINK World

发布配置正在编译.这可能仍然不足以解决我的问题,但请您解释一下为什么会发生这种情况.

The release configuration is compiling. This is probably still not enough information for solving my problem, but I would appreciate an explanation for why this can happen.

推荐答案

我已经在使用正确的lib进行调试配置,但不仅链接到GLFW.lib,而且链接到GLFWDLL.lib.您可以使用GLFW.lib GLFW 编译为可执行文件,也可以通过链接至GLFWDLL.lib使用DLL.我不小心把两者都弄了.

I was already using the right lib for debug configuration but was not only linking to GLFW.lib but also to GLFWDLL.lib. You can either compile GLFW into you executeable by using GLFW.lib or use a DLL by linking to GLFWDLL.lib. I accidentally did both.

其他信息

4.2与正确的库链接

4.2 Link with the right libraries

在当前的 GLFW 2.7发行说明中.

这篇关于具有调试配置的GLFW控制台项目中的LNK4099的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆