在mac下用homebrew装了个gcc 4.9.2,在终端测试"g++-4.9 a.cpp -o a"是可以使用的。
接着给sublime建了个新的build system
{
"cmd" : ["g++-4.9 $file_name -o ${file_base_name} && ./${file_base_name}"],
"selector" : "source.c, source.c++",
"shell": true,
"working_dir" : "$file_path"
}
然后command+B编译的时候他给我返"/bin/sh: g++-4.9: command not found"
怎么解决呢?