MSVC 和 FreeGlut 编译器错误
编译时收到大量此类消息,这使得编译一个简单的程序非常耗时。
freeglut_static.lib(freeglut_callbacks.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>freeglut_static.lib(freeglut_cursor.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>freeglut_static.lib(freeglut_display.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
有什么办法可以防止这种情况发生吗?会让我的作业变得更加愉快。 :)
编辑: 我正在使用 Microsoft Visual C++ Express 2008。
Receiving alot of these messages when compiling which is making compiling a simple program very time consuming.
freeglut_static.lib(freeglut_callbacks.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>freeglut_static.lib(freeglut_cursor.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
1>freeglut_static.lib(freeglut_display.obj) : warning LNK4204: 'z:\CST328\Lab1\block\Release\vc90.pdb' is missing debugging information for referencing module; linking object as if no debug info
Is there anyway to prevent this? Would making working on my assignments much more pleasant. :)
EDIT:
I Am using Microsoft Visual C++ Express 2008.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
库二进制文件不同步
您的 pdb 文件与Windows 中的 ,pdb 保存模块的调试信息。它与特定的构建相关联。如果你重建你的库,你必须生成一个新的 pdb 文件。您拥有的 pdb 文件不同步,因此您必须删除(或重命名)它(查找文件 freeglut_static.pdb)或重新编译库并生成最新的 pdb 文件。
your pdb file is out of sync with the library binary
in Windows, the pdb holds the debug information for a module. it is linked to a particular build. if your rebuild your library you have to produce a new pdb file. the pdb file your have is out of sync so you either have to delete (or rename) it (find a file freeglut_static.pdb) or recompile the library and produce an up to date pdb file.