MSVC和FreeGlut编译器错误

bob*_*205 1 c++ static freeglut visual-c++

在编译时接收了很多这些消息,这使得编译简单程序非常耗时.

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
Run Code Online (Sandbox Code Playgroud)

反正有没有阻止这个?能使我的作业更加愉快.:)

编辑:我使用的是Microsoft Visual C++ Express 2008.

Alo*_*lon 6

您的pdb文件与库二进制文件不同步

在Windows中,pdb保存模块的调试信息.它链接到特定的构建.如果你重建你的库你必须生成一个新的pdb文件.你的pdb文件不同步所以你要么必须删除(或重命名)它(找到一个文件freeglut_static.pdb)或重新编译库并生成一个最新的pdb文件.