How to Compile and Debug C++ in Notepad++ using Turbo C++ Compiler

孤街醉人 提交于 2019-12-10 18:07:37

问题


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++.

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.


回答1:


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.).

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).

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

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

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

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




回答2:


I wondering why somone wants to use turbo C++.If you run Windows, just use Visual Studio Express, or Dev-C++.If you still want to use Turbo C you will run into several problems with compatibility of this ancient software.



来源:https://stackoverflow.com/questions/8836400/how-to-compile-and-debug-c-in-notepad-using-turbo-c-compiler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!