Last active
February 14, 2024 12:13
-
-
Save Xuanwo/31ac95e82d446db37c2e to your computer and use it in GitHub Desktop.
用于在Sublime Text 3基础上构建C/C++IDE,Linux下
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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.'"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
g++: error: : No such file or directory
g++: fatal error: no input files
compilation terminated.
press any key to continue.
报这个错误。。。