在Eclipse CDT(Juno)中構建針對cygwin gcc的程序時,出現「拒絕訪問」錯誤。 這是我遵循的步驟。在Eclipse中使用Sgsolidator與Cygwin時出現拒絕錯誤CDT
- 安裝了Python(2.7)
- 安裝使用SCons
- 安裝SConsolidator在Eclipse CDT(最新一期)
- 創建使用 「使用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文件中添加了簡單的主要方法。它保存
- 得到同樣的錯誤如下
=== SCons的運行在13年6月23日下午11時十九==== 命令行:C:\ Python的\腳本\ 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目錄嗎? – Brady
我有完整的訪問權限..我是Windows的管理員用戶.. :-) –