VC ++ 6.0项目配置

编程入门 行业动态 更新时间:2024-10-27 22:20:22
本文介绍了VC ++ 6.0项目配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个带有硬件的项目. 该项目仅定义了发布配置.我想添加一个调试配置,以便可以在调试器中运行该程序. 有谁知道如何做到这一点? 在构建"下有一个配置"菜单项,可以在其中添加配置,但是添加调试配置只会创建发布配置的副本(复制设置来自:"的下拉列表将发布配置列为唯一的选择). 在此先感谢您.

I have a project that came with a piece of hardware. The project has only a release configuration defined. I would like to add a debug configuration so I can run the program in the debugger. Does anyone know how to do this? There is a Configurations menu item under Build where a configuration can be added, but adding a debug configuration just creates a copy of the release configuration (there is a drop-down list for "Copy settings from:" that lists the release configuration as the only option). Thanks in advance.

推荐答案

从Release创建Debug配置后,按如下所示修改Debug设置: 一般|中间文件和输出文件:调试 调试|调试会话的可执行文件:[填写正确的完整路径] C/C ++ |一般|优化:禁用(调试) C/C ++ |一般|代码生成:使用运行时库:调试多线程DLL C/C ++ |预处理器|预处理程序定义:添加_DEBUG 友情链接一般|生成调试信息:选中 友情链接自订|使用程序数据库:已选中 友情链接调试|调试信息:已选中 友情链接调试|单独的类型:选中 友情链接调试| Microsoft格式:已选择 浏览其他选项卡以确保路径等正确(例如,使用Debug代替Release). 如果您有任何问题,请在此处发布. After creating Debug configuration from Release, modify the Debug settings as follows: General | Intermediate and Output files: Debug Debug | Executables for debug session : [fill in correct full path] C/C++ | General | Optimizations: Disable (Debug) C/C++ | General | Code Generation: Use run-time library: Debug Multithreaded DLL C/C++ | Preprocessor | Preprocessor definitions: add _DEBUG Link | General | Generate debug info: checked Link | Customize | Use program database: checked Link | Debug | Debug info: checked Link | Debug | Separate types: checked Link | Debug | Microsoft format: selected Cruise through the other tabs to make sure paths, etc., are correct (e.g., Debug instead of Release). If you have any problems, please post here.

如果您使用菜单转到Project>设置,您会看到一个对话框,您可以在其中配置每个内部版本. 从左上角的组合框中选择调试版本(例如"Win32 Debug"). If you use the menu to go to Project > Settings, you get a dialog where you can configure each build. Select the debug build (e.g. "Win32 Debug") from the combobox in the top left corner.

更多推荐

VC ++ 6.0项目配置

本文发布于:2023-07-15 23:03:59,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1115285.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   VC

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!