我一直在努力建立一个崇高的工作环境。如果没有编译错误,我的编译系统就可以工作,但是当有任何编译错误时它就会运行。它只说" Build Finished,1 error" ,没有迹象表明错误在哪里。
这是我的构建系统。
{
"cmd" : ["g++", "${file}", "-o", "${file_path}/${file_base_name}.exe" ],
"working_dir":"${file_path}",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"variants" :
[
{
"name" : "Run",
"cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}.exe", "&&", "cmd", "/c", "${file_path}/${file_base_name}"]
},
{
"name" :"RunInCommand",
"cmd": ["cmd", "/c", "g++", "${file}", "-o", "${file_path}/${file_base_name}.exe", "&&", "start", "cmd", "/c", "${file_path}/${file_base_name} && pause"]
},
{
"name" :"Compile_with_gprof",
"cmd": ["cmd", "/c", "g++","-g","-pg", "${file}", "-o", "${file_path}/${file_base_name}.exe", "&&", "cmd", "/c", "${file_path}/${file_base_name}","&&","gprof ${file_path}/gmon.out > ${file_path}/${file_base_name}.log"]
}
]
}
并且命令在我的cmd中运行得很好
为我可怜的英语而烦恼