当我尝试在 sublime text 2 中构建我的 C 程序时出现此错误。我刚刚更新了 cygwin 和 MinGW。我也不能从 windows 命令使用 gcc 访问,但 g++-3 可以。
[Error 5] Access is denied
[cmd: [u'g++', u'C:\\Users\\Adam\\Desktop\\s', u'-o', u'C:\\Users\\Adam\\Desktop/s']]
[dir: C:\Users\Adam\Desktop]
[path: C:\csvn\bin\;C:\csvn\Python25\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Java\jre7\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Users\Adam\AppData\Local\Smartbar\Application\;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.4\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Program Files\TortoiseSVN\bin;C:\Program Files\Java\jdk1.7.0_11\bin;C:\cygwin\bin;C:\Program Files\TortoiseSVN\bin;C:\csvn\bin;C:\cygwin64\bin;C:\MinGW\bin]
[Finished]