简体   繁体   English

c ++-在Sublime Text,Windows 8中构建系统

[英]c++ - Build systems in Sublime Text, Windows 8

I'm just beginning to learn programming (on C++), and by beginning I mean total beginning ("hello world" beginning...). 我刚刚开始学习编程(在C ++上),而我指的是完全的开始(“ hello world”开始...)。 Not wanting to use multiple IDE's, I would like to be able to code and build–simple–programs with my text editor, Sublime Text 2. Could someone indicate me, with a step-by-step tutorial, how to implement C++ compiling and executing capabilities in Sublime Text. 不想使用多个IDE,我希望能够使用文本编辑器Sublime Text 2进行编码和构建简单的程序。有人可以通过分步教程向我指出如何实现C ++编译以及Sublime Text中的执行功能。

I've searched Sublime Text build systems on the site, but the answers are very specific and can't help a rookie like me (but they'll probably help me later). 我已经在网站上搜索了Sublime Text构建系统,但是答案非常具体,无法帮助像我这样的菜鸟(但他们稍后可能会帮助我)。

Thanks 谢谢

Sublime Text 2 will allow you to build .cpp files within the application, but you must have the GNU c++ compiler installed on your machine and defined on your path in order for it to work. Sublime Text 2允许您在应用程序中构建.cpp文件,但是必须在计算机上安装GNU c ++编译器并在路径中对其进行定义,这样它才能起作用。

The following link provides a version of g++ for you to use and has detailed instructions for doing this 以下链接提供了供您使用的g ++版本,并提供了执行此操作的详细说明

http://www.claremontmckenna.edu/pages/faculty/alee/g++/g++.html http://www.claremontmckenna.edu/pages/faculty/alee/g++/g++.html

once youve installed g++ you'll be able to build your .cpp file and run it from with in sublime text 2. 一旦安装了g ++,您就可以构建.cpp文件,并通过sublime text 2运行它。

Happy coding! 编码愉快! :) :)

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

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