您的位置:首页 > 编程语言 > C语言/C++

sublime text3 C语言环境配置

2015-07-22 09:56 204 查看
{
"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"]
}
]
}


不要忘记设置MinGW的环境变量Path:C:\MinGW\bin
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: