binary was not built with debug information

本文主要参考CSDN飘飘白云博客,网址是:http://blog.csdn.net/kesalin/article/details/1661610


    在用VS2010写程序时,有时候默认的那个Solution Configuration,即Debug被你改了,比如说是因为opencv,

opengl或者WDK,而加上了很多lib和include文件,但是又删除不了,所以我就新建了一个Solution Configuration,取

名叫gpspss。如图:


新建后,接着编译就出现问题了,弹出框显示:

binary was not built with debug information

解决方案:

1. 把Project--->Properties--->C/C++--->general---->Debug information format  改成  Program Database for edit and continue (/ZI)

binary was not built with debug information_第1张图片

2.Project--->Properties--->C/C++--->Optimization--->Optimization  改成   Disabled (/Od)

binary was not built with debug information_第2张图片

3.Project--->Properties--->C/C++--->Code Generation--->Runtime library   改为   Multi-Threaded Debug (/MTd)"

binary was not built with debug information_第3张图片

4.Project--->Properties--->Linker--->Debugging--->Generate Debug info   改成   Yes (/DEBUG)

binary was not built with debug information_第4张图片

5.重新build你的项目吧

你可能感兴趣的:(binary was not built with debug information)