Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
用于在Sublime Text 3基础上构建C/C++IDE,Windows下
{
"cmd": ["g++", "${file}", "-std=c++11", "-o", "${file_path}/${file_base_name}"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c, source.c++",
"shell": true,
"encoding":"cp936",
"variants":
[
{
"name": "Run",
// "cmd": [ "start", "${file_path}/${file_base_name}.exe"]
"cmd": ["start", "cmd", "/c", "${file_base_name} & echo. & pause"]
}
]
}
@Jeffrey95

This comment has been minimized.

Copy link

Jeffrey95 commented Jan 19, 2016

git主你好,我使用你的配置时,遇到个问题,当我把cpp文件放在桌面时,可以正常编译运行。
当我把cpp放在文件夹或其中位置时,就会错误
例如:D://b.cpp 在sublime里中ctrl+b编译时,会弹出cmd说‘b不是内部或外部命令,也不是可运行的程序或批处理文件’
请问下应该怎么解决呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.