您的位置 首页 > 腾讯云社区

Sublime Text3的C语言开发环境配置---bering

下载minGW

传送门:https://osdn.net/projects/mingw/releases/

安装minGW

minGw安装教程 传送门:https://blog.csdn.net/wxh0000mm/article/details/100666329

配置minGW环境变量

path中添加MinGW下的bin路径:如 C:MinGWbin

SublimeText3新建buildsystem{ "cmd": ["gcc", "-W", "-Wall", "-Werror","${file}", "-o", "${file_path}/${file_base_name}","-std=gnu99"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c", "encoding":"cp936", "variants": [ { "name": "Run", "cmd": ["cmd", "/c", "gcc", "${file}", "-o", "${file_path}/${file_base_name}","-std=gnu99", "&&", "cmd", "/c", "${file_path}/${file_base_name}"] } , { "name": "Runincmd", "cmd": ["cmd", "/c", "gcc", "${file}", "-o", "${file_path}/${file_base_name}","-std=gnu99", "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} & pause"] } ] }

或者

{ "cmd": ["g++", "${file}", "-o", "${file_path}/${file_base_name}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c++", "variants": [ { "name": "Run", "cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}", "&&", "cmd", "/c", "${file_path}/${file_base_name}"] }, { "name": "RunInCommand", "cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}", "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} & pause"] } ] } ---来自腾讯云社区的---bering

关于作者: 瞎采新闻

这里可以显示个人介绍!这里可以显示个人介绍!

热门文章

留言与评论(共有 0 条评论)
   
验证码: