2010-01-05 45 views
1

在編譯編譯簡單程序時非常耗時接收這些消息。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++ 2008年快遞

回答

6

您的PDB文件不與二進制庫

在Windows

同步的pdb適用於一個模塊的調試信息。它與特定的版本相關聯。如果你重建你的庫,你必須生成一個新的pdb文件。您的pdb文件不同步,因此您必須刪除(或重命名)它(找到文件freeglut_static.pdb)或重新編譯該庫並生成最新的pdb文件。

+0

我找不到freeglut.callbacks.pdb文件。 任何其他的暗示?我已經重建了Visual Studio 2008靜態項目。應該把新的lib文件放在正確的位置修復錯誤? – bobber205 2010-01-05 04:28:10

+0

該文件應該是freeglut_static.pdb – Alon 2010-01-05 05:41:10