Skip to content

Instantly share code, notes, and snippets.

@Xuanwo
Last active February 14, 2024 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Xuanwo/31ac95e82d446db37c2e to your computer and use it in GitHub Desktop.
Save Xuanwo/31ac95e82d446db37c2e to your computer and use it in GitHub Desktop.
用于在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.'"]
}
]
}
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.
报这个错误。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment