MinGW-w64は少なくともDecember 2010以降、Cygwinで利用可能です。 しかし、私はこれを使ってほとんど何かをコンパイルするのに苦労しています。私がコンパイルしようとする場合、私は、例えばalternativesCygwinでMinGW-w64を使用するには?
p=x86_64-w64-mingw32
alternatives \
--install /usr/bin/gcc.exe gcc /usr/bin/$p-gcc.exe 0 \
--slave /usr/bin/ar.exe ar /usr/bin/$p-ar.exe
でシンボリックリンクを設定しているwget
./configure --without-ssl
make
エラー(簡潔にするために編集)
connect.o:connect.c:(.text+0x3f): undefined reference to `__imp_htons'
connect.o:connect.c:(.text+0xbe7): undefined reference to `__imp_ntohs'
connect.o:connect.c:(.text+0xd96): undefined reference to `run_with_timeout'
私が使用している場合
- MinGW CygwinのGCC(
gcc4-core
)
とMinGWのGCC
が、これは
./configure --host=x86_64-w64-mingw32 --disable-ipv6 --without-ssl
make
私はCygwinに 'mingw64-x86_64-gcc-g ++'パッケージをインストールしました。しかし、 'which g ++'は 'g ++'を表示しません。インストールされた 'mingw64'コンパイラはどこにありますか?この 'mingw64-x86_64-gcc-g ++'では './configure --target = ???' – Admia