Programming: April 2011 Archives


Vote 0 Votes

MinGW 是 "Minimalist GNU for Windows" 的縮寫,
簡單講它就是 Linux GCC 移植到 Windows 下的 C/C++ Compiler
Cygwin 不同的是, 編好的執行檔不需要其他的 DLL 檔
來個 hello, world 測一下

int main() {
printf("hello, world\n");

C:\MinGW\bin>gcc hello.c -o hello.exe

hello, world

Linux 程式移植到 Windows, 會有一些地方需要改,
例如 #include <sys/socket.h> 要改成 #include <Winsock2.h>

ref. MinGW 與 Cygwin 的不同處

About this Archive

This page is an archive of entries in the Programming category from April 2011.

Programming: March 2011 is the previous archive.

Programming: June 2011 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives