如何编译和调试C ++在记事本+ +中使用的Turbo C ++编译器 [英] How to Compile and Debug C++ in Notepad++ using Turbo C++ Compiler

查看:119
本文介绍了如何编译和调试C ++在记事本+ +中使用的Turbo C ++编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装在记事本NppExecute插件++。我无法弄清楚下一步编译和调试C,C ++在记事本++程序。

I have installed NppExecute plugin in notepad++. I am not able to figure out next step to compile and debug C,C++ programs in Notepad++.

系统详细信息:(一)Turbo C的目录C:\\ TC(二)操作系统Windows 7

System Details: (a) Turbo C directory C:\TC (b) OS Windows 7

请于编译和调试提供了关于如何设置环境变量的完整详细信息和脚本。

Please provide complete details on how to set Environment Variable and Scripts for Compiling and Debugging.

推荐答案

记事本+ +具有运行功能,但据我所知,这是无法帮你调试(例如,通过code步进,观察变量等)

Notepad++ has the run feature, but as far as I know it's unable to help you debugging (e.g. stepping through code, watching variables, etc.).

您最好的选择是用一个简单的批处理文件来编译code和运行调试命令,但据我所知,你不能包括一切到记事本++(即它没有真正的C / C ++ IDE)

Your best bet would be using a simple batch file to compile the code and run your debug commands, but as far as I know you can't include everything into Notepad++ (i.e. it's no real C/C++ IDE).

只有你所得到的是将创建批处理文件程序选项按NppExecute运行。

Only option you've got is adding the created batch file as the program to be run by NppExecute.

编辑:
总体而言,作为rkosegi建议,如果可能的话,使用更先进的最新工具链。

Overall, as rkosegi suggested, if possible, use a more up-to-date toolchain.

微软的Visual C ++防爆preSS 版可以免费下载,并用于私人或商业项目。

Microsoft's Visual C++ Express Edition can be downloaded for free and used for private or commercial projects.

如果你的目标跨平台code,它可能是更容易使用 MinGW的来使用GCC / G ++ Windows下。

If you target cross platform code, it might be easier to use MinGW to use GCC/G++ under Windows.

这篇关于如何编译和调试C ++在记事本+ +中使用的Turbo C ++编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆