Octopress 部落格

一個靜態網站的部落格框架

MinGW安裝方式

MinGW安裝方式:
1. 先至 MingGW 下載 MinGW-5.1.4.exe
2. 安裝時除了core 必安裝外, 最好在安裝c++套件
3. 設定 windows 的 path , 加上 C:\MinGW\bin
4. 在 C:\MinGW\ 下, 產生 win_hello.c 檔案
內容如下:
#include
int WINAPI WinMain (HINSTANCE hInstance,
HINSTANCE hPrevInstance,
PSTR szCmdLine,
int iCmdShow)
{
MessageBox (NULL, “Hello”, “Hello Demo”, MB_OK);
return (0);
}

5. 執行 cmd, 在console 下執行 :
C:\MinGW>g++ -o win_hello win_hello.c -mwindows

6. 完成後, 如果沒有任何錯誤, 就會產生一個簡單的exe程式了~~ 祝順利~~