“二进制文件不是用调试信息构建的"警告在MFC应用程序中的含义?

“二进制文件不是用调试信息构建的

问题描述:

在Windows 7中运行Windows应用程序(MFC)时,我得到以下警告.

I am getting the following Warning when i run my Windows Application(MFC) in Windows 7.

'XXX.exe': Loaded 'C:\2010\Debug\bin\plugins\control\libhotkeys_plugin.dll', Binary was not built with debug information.

请帮帮我.谢谢

似乎您的二进制文件是在发布模式下构建的

It seems that your binary was build in Release mode

现在有两种方法可以遵循....

Now there are two ways which you can follow....

  • 使用调试"配置构建二进制文件
  • 更改项目设置,以便在发布模式下生成程序数据库文件(PDB).

  • build the binary with "Debug" configuration
  • change the project settings so that a Program Database file (PDB) is generated in the release mode.

现在您可以从属性窗口生成PDB ...

Now you can generate PDB from the property window...