i have used this build system for a half year.
but it does’t work today, don’t know why…
i used macbook pro.
{
“cmd”: “clang++”, “${file}”,"-std=c++11", “-stdlib=libc++”, “-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": "bash", "-c", "clang++ '${file}' -std=c++11 -stdlib=libc++ -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]
}
]
}
[Errno 2] No such file or directory: ‘clang++’
[cmd: [‘clang++’, ‘/Users/ArthurWang/Documents/Code/C++/OOP/HW/HW11/HW11-1.cpp’, ‘-std=c++11’, ‘-stdlib=libc++’, ‘-o’, ‘/Users/ArthurWang/Documents/Code/C++/OOP/HW/HW11/HW11-1’]]
[dir: /Users/ArthurWang/Documents/Code/C++/OOP/HW/HW11]
[path: /usr/local/share/npm/bin:/usr/local/bin:/opt/local/bin]
[Finished]