* [[http://dev.zhourenjian.com/blog/2009/03/11/compiling-gdb-debugger-in-windows.html|Compiling GDB Debugger in Windows]] * [[http://www.mingw.org/|MinGW | Minimalist GNU for Windows]] * 安裝以下套件 * mingw-developer-toolkit * mingw32-base * 點擊 C:\MinGW\msys\1.0\msys.bat * [[https://code.google.com/p/mintty/|mintty]] * [[http://mingw-w64.sourceforge.net/|Mingw-w64 - GCC for Windows 64 & 32 bits]] * [[http://novus.pixnet.net/blog/post/32578686|試用 MSYS2]] * [[http://stackoverflow.com/questions/3776098/cygwin-how-to-actually-use-gcc-mingw|Cygwin: How to actually use gcc-mingw]] * [[http://stackoverflow.com/questions/340696/can-you-statically-compile-a-cygwin-application|Can you statically compile a cygwin application?]] * 注意! Cygwin 版本 GCC 已經不支援 -mno-cygwin 選項。Cygwin 可以安裝 MinGW 版本的 GCC,產生 Windows 原生執行檔 (不需要 cygwin1.dll)。 * [[http://stackoverflow.com/questions/4544296/how-to-install-cygwin-and-mingw-under-windows-7|how to install cygwin and mingw under windows 7?]] * [[https://cygwin.com/ml/cygwin-announce/2013-07/msg00019.html|Updated: mingw-gcc-{core,g++,fortran,objc}-4.7.3-1; NEW: mingw-gcc-ada-4.7.3-1]] * *-pc-cygwin-gcc * Cygwin 版本 GCC,鏈結 cygwin1.dll。 * *-pc-mingw32-gcc * MinGW 版本 GCC,產生 Windows 原生執行檔。 * [[http://stackoverflow.com/questions/3042242/gcc-on-cygwin-coexisting-with-mingw|GCC on Cygwin coexisting with MinGW]] * 如果同時安裝 Cygwin 和 MinGW,建議在各自的終端設置路徑,不要在 Windows 設置全域環境變數,避免混淆。 * [[http://mingw-users.1079350.n2.nabble.com/gdb-gdbserver-exe-build-problem-under-msys-td6932474.html|gdb (gdbserver.exe) build problem under msys]] * `cpp -v` 確認 include 路徑。 ====== 編程相關 ====== * [[http://stackoverflow.com/questions/5225579/crash-reporting-for-mingw-applications|Crash reporting for MinGW applications]] ====== 外部連結 ====== * [[http://www.mingw.org/|MinGW | Minimalist GNU for Windows]] * [[http://www.ysbl.york.ac.uk/~lohkamp/speedup_compilation.html|MinGW/MSYS make and compilation slow - make it faster]] * [[http://mingw-w64.sourceforge.net/|Mingw-w64 - GCC for Windows 64 & 32 bits]]