简体   繁体   English

在Windows中从Sublime Text 2运行C程序

[英]Running C program from Sublime Text 2 in windows

I have installed Sublime text 2 in windows 7. I want to run C program in it.I am using borland compiler. 我已经在Windows 7中安装了Sublime text2。我想在其中运行C程序。我正在使用borland编译器。 I couldn't understood build system option.Please help,give me the command to run c++ program. 我无法理解构建系统选项。请帮助,给我运行C ++程序的命令。 Using cmd I compile it as "bcc32 program_name.c" and then run as program_name.exe . 使用cmd将其编译为“ bcc32 program_name.c”,然后以program_name.exe的身份运行。

The way I was running applications on Windows with Sublime Text 2 was through a custom build script. 使用Sublime Text 2在Windows上运行应用程序的方式是通过自定义生成脚本。 I made a Windows Batch file and did all of the things I wanted to do in that batch file. 我制作了Windows批处理文件,并在该批处理文件中做了我想做的所有事情。 Then all I had to do was use the Build shortcut key to run the batch file. 然后,我所要做的就是使用Build快捷键来运行批处理文件。

The custom build script referenced the bat file with the absolute path, just in-case you run into any problems if you do try this out... 定制构建脚本使用绝对路径引用了bat文件,以防万一您遇到任何问题(如果尝试)...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM