退出: exit
查看版本: cygcheck -c cygwin
查看本地安裝的所有软件包: cygcheck -c -d
autoconf2.1
lynx
automake
binutils
gcc-core
gcc-g++
gcc4-core
gcc4-g++
gdb
pcre
pcre-devel
gawk
make
cmake
wget(Web)
gnupg
mingw64-x86_64-gcc-core
编辑/home/username/.bash_profile
加入
export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087
/usr/lib/gcc/x86_64-pc-cygwin/7.4.0/../../../../x86_64-pc-cygwin/bin/ld: 找不到 -lmingw32
collect2: 错误:ld 返回 1
SolutionMore:
* install MinGW-W64 under "Cygwin" by selecting these packages (under "Devel" category):
mingw64-x86_64-gcc-core: 64-bit C compiler for native 64-bit Windows. The executable is "x86_64-w64-mingw32-gcc".
mingw64-x86_64-gcc-g++: 64-bit C++ compiler for native 64-bit Windows. The executable is "x86_64-w64-mingw32-g++".
mingw64-i686-gcc-core: 64-bit C compiler for native 32-bit Windows. The executable is "i686-w64-mingw32-gcc".
mingw64-i686-gcc-g++: 64-bit C++ compiler for native 32-bit Windows. The executable is "i686-w64-mingw32-g++".
* add cygwin path to $PATH, eg:D:\Softwares\cygwin64\bin
* run `export CC=x86_64-w64-mingw32-gcc` # .exe file
####