【发布时间】:2013-06-21 09:12:03
【问题描述】:
在针对 cygwin gcc 的 Eclipse CDT (Juno) 中构建我的程序时出现“拒绝访问”错误。 这是我遵循的步骤。
- 已安装 Python (2.7)
- 已安装的 Scons
- 在 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.
我做错了什么?它应该工作。谁能帮我设置一下?
【问题讨论】:
-
会不会是你没有权限将demo.exe或者demo.o写入Debug目录?
-
我可以完全访问目录。我是 windows 框的管理员用户。:-)
标签: gcc cygwin eclipse-cdt scons