Cygwinでcygwin1.dllフリーなWindows実行ファイルを作る (MinGW-w64) - wlt’s blog

Cygwinのgcc ver.3.xでは-mno-cygwinオプションを付ければcygwin1.dllのリンクされない実行ファイルを作る事ができるが、最近のgcc (ver.4.x系列?)ではこのオプションは使えない。 $ gcc -mno-cygwin sample.c gcc: The -mno-cygwin flag has been removed; use a mingw-targeted cross-compiler. $ gcc --version gcc (G…