在cygwin下使用gcc的最小包是什麼? 我已經安裝了gcc-core,gcc-g ++,gdb,binutils,make。這些不夠嗎?當我嘗試編譯一個基本的C代碼,我得到以下錯誤gcc cygwin編譯錯誤
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-luser32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lkernel32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-ladvapi32
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find
-lshell32
有名爲SYSTEM32 USER32 ADVAPI SHELL32 dll文件。鏈接器是否搜索它們但沒有找到? 它是一個路徑相關的問題?當我去$ PATH
$ $PATH
bash: /usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program: No such file or directory
和echo $ PATH
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Program Files/PC Connectivity Solution/
:/cygdrive/c/Program Files/MiKTeX 2.8/miktex/bin:/cygdrive/c/WINDOWS/system32:/c
ygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program Files/AT
I Technologies/ATI.ACE/Core-Static:/cygdrive/c/Program Files/MATLAB/R2010a/runti
me/win32:/cygdrive/c/Program Files/MATLAB/R2010a/bin:/cygdrive/c/Program Files/S
amsung/Samsung PC Studio 3/:/cygdrive/c/Cygwin/bin:/cygdrive/c/Cygwin/usr/bin
不幸的是,您的鏈接已損壞,網站** cablelabs.com **沒有子域** devzone **(至少對於公衆而言)。你能修好它嗎? – 2017-05-30 13:45:17