Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
用于在Sublime Text 3基础上构建C/C++IDE,Linux下
{
"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++",
"variants":
[
{
"name": "Run",
"cmd":["gnome-terminal", "-x", "bash", "-c", "g++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ;read -n1 -p 'press any key to continue.'"]
}
]
}
@ghost

This comment has been minimized.

Copy link

ghost commented Jun 8, 2015

g++: error: : No such file or directory
g++: fatal error: no input files
compilation terminated.
press any key to continue.
报这个错误。。。

@Sciorz

This comment has been minimized.

Copy link

Sciorz commented Sep 11, 2017

gnome-terminal后面是不是还需要加一个 -std=c++11

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.