首页 > 代码库 > C编译环境的搭建-sublime篇

C编译环境的搭建-sublime篇

1.安装sublime text

2.下载MingW:

http://sourceforge.net/projects/mingw-w64/?source=typ_redirect

3.sublime中:preferences->browse packages->c++/c++.sublime-build文件修改为:

 

{    "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"],    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",    "working_dir": "${file_path}",    "selector": "source.c, source.c++",    // "encoding":"cp936",    "variants":    [        {            "name": "Run",            "cmd": ["${file_path}\\\\${file_base_name}.exe"]        }    ]}

your rock!

C编译环境的搭建-sublime篇