在针对 cygwin gcc 的 Eclipse CDT (Juno) 中构建我的程序时,我收到“拒绝访问”错误。这是我遵循的步骤。
- 安装 Python (2.7)
- 已安装的 Scon
- 在eclipse CDT中安装了SConsolidator(最新的)
- 使用“Scons 可执行项目”向导创建一个新项目
现在,当 scons 尝试构建项目时,我收到以下错误
=== Running SCons at 6/23/13 11:05 PM ====
Command line: C:\Python\Scripts\scons.bat -u --jobs=16
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: warning: you do not seem to have the pywin32 extensions installed;
parallel (-j) builds may not work reliably with open Python files.
scons: Building targets ...
File "C:\Python\Scripts\scons.py", line 192, in <module>
scons: building associated VariantDir targets: Debug
gcc -o Debug\demo.exe
Access is denied.
scons: *** [Debug\demo.exe] Error 1
scons: building terminated because of errors.
Duration 1201 ms.
- 认为没有源文件,这就是为什么没有可执行文件,因此拒绝访问。
- 在 demo.c 文件中添加了简单的 main 方法。保存了
- 得到与下面相同的错误
=== 在 2013 年 6 月 23 日晚上 11:19 运行 SCons ==== 命令行:C:\Python\Scripts\scons.bat -u --jobs=16 scons:读取 SConscript 文件 ... scons:完成阅读 SConscript 文件。
scons: warning: you do not seem to have the pywin32 extensions installed; parallel (-j) builds may not work reliably with open Python files. scons: Building targets ... File "C:\Python\Scripts\scons.py", line 192, in <module> scons: building associated VariantDir targets: Debug gcc -o Debug\demo.o -c -O0 -g3 -Wall -c -fmessage-length=0 demo.c Access is denied. scons: *** [Debug\demo.o] Error 1 scons: building terminated because of errors. Duration 1306 ms.
我究竟做错了什么?它应该工作。有人可以帮我设置吗?