我正在使用Sublime Text 3来编写C程序,我想为我的项目设置一个构建系统,所以我在项目文件中配置它如下:
"build_systems":
[
{
"name": "GCC+Make",
"cmd": ["make"],
"shell": true,
"working_dir": "${project_path}",
"variants":
[
{
"name": "Make",
"cmd": ["make"],
},
{
"name": "Clean",
"cmd": ["make", "clean"],
}
]
}
]
当我在命令提示符下输入make
时,每个东西都像魅力一样,但是当我使用Ctrl+B
构建项目时,我得到了以下错误,我确信gcc在%PATH中%,有没有人知道出了什么问题?
gcc -Wall HelloWorld.c -o HelloWorld.exe
make: gcc: Command not found
makefile:4: recipe for target 'HelloWorld.o' failed
make: *** [HelloWorld.o] Error 127
[Finished in 0.2s with exit code 2]
[cmd: ['make']]
[dir: D:\userdata\j5shi\OneDrive\Private\Workspace_Jerry\Proj_C\GCC]
[path: C:\Program Files (x86)\RSA SecurID Token Common;C:\Windows\system32;path=C:\Windows\system32;C:\Windows;C:\Windows\system32\wbem;C:\Windows\system32\windowspowershell\v1.0\;c:\program files (x86)\vim\vim74\;c:\python27\;c:\python27\scripts\;c:\totalcmd\;C:\Program Files (x86)\Git\cmd;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;C:\APPS\svncmdline\bin;c:\apps\Ctags\ctags58\;c:\cygwin\bin;]