我在针对cygwin gcc的Eclipse CDT(Juno)中构建程序时遇到“拒绝访问”错误。 以下是我遵循的步骤。
现在,当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.
===在6/23/13 11:19 PM运行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.
我做错了什么?它假设工作。有人可以帮我设置一下吗?
答案 0 :(得分:1)
错误“拒绝访问”在这种特定情况下有些误导,因为问题是SConsolidator使用g++
这是Cygwin中的符号链接,只能在Cygwin终端中调用。 SConsolidator应该使用符号链接指向的可执行文件(可以是g++-3
或g++-4
,具体取决于您使用Cygwin安装的GCC版本)作为其托管构建模式中的SCons工具链。我从您的论坛帖子中创建了此问题的故障单(请参阅http://sconsolidator.com/issues/43)。
请注意您使用的是SConsolidator的托管模式。这是开始使用SCons的模式,并不适用于更复杂的项目和构建。如果您的项目属于这种情况,请使用SConsolidator的“自提构建”模式(有关详细信息,请参阅http://sconsolidator.com/projects/sconsolidator/wiki/Getting_Started)。
免责声明:我是SConsolidator的作者。