sublime编译c/c++

有点奇怪,明明昨天配置好的没问题,今天突然又无法编译c/c++文件了。

记录下New Build System中c++的配置文件,以免以后再出毛病

{
 "cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}", "&", "start", "cmd", "/c", "${file_base_name} & echo. & pause"],
 "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
 "working_dir": "${file_path}",
 "selector": "source.c, source.c++",
 "shell": true,
 "encoding":"cp936",
}

猜你喜欢

转载自www.cnblogs.com/friend-A/p/9726639.html