2013年10月28日 星期一
2013年10月20日 星期日
在Windows XP下使用Geany作為C#編譯器
Step0:
請先安裝好Geany 並做好基礎設置
Step1:
download latest version of Microsoft .NET Framework:
http://www.microsoft.com/zh-tw/download/details.aspx?id=17718
Step2:
請到 C:\WINDOWS\Microsoft.NET\Framework 找尋名稱為"vx.x"且內有 csc.exe 的最新版資料夾
append these to the Environment Variable "Path"
C:\WINDOWS\Microsoft.NET\Framework\vx.x\
*replace x.x with the current version
Step3:
用Geany隨便打開一個C#檔案->組建->設定組建命令
修改以下參數:
編譯: csc.exe "%f"
執行: "%e.exe"
資料來源: http://nachocabanes.blogspot.tw/2010/11/compilar-csharp-con-geany.html
2013年10月4日 星期五
在Windows XP下使用Geany作為C++編譯器
Step1:
download Geany: http://www.geany.org/Download/Releases
Windows Binaries geany-x.xx.x_setup.exe - Full Installer including GTK x.xx.
Step2:
download gcc(GNU Compiler Collection): MinGW http://sourceforge.net/projects/mingw/files/
Looking for the latest version? Download mingw-get-setup.exe (86.5 kB)
Step3:
install g++: open MinGW Installation Manager
install all the packages of mingw32-gcc-g++
Step4:
append these to the Environment Variable "Path"
C:\MinGW\;C:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\x.x.x\;
*replace x.x.x with the current version
Step5:
用Geany隨便打開一個C++檔案->組建->設定組建命令
修改以下參數:
編譯: g++ -m32 %f -o %e.exe
組建: g++ -m32 %f
執行: start %e.exe && del "%0" && exit
※罕見問題:
你的電腦一定要能正常執行.bat檔
無法執行的原因之一是你使用了chcp 65001(UTF-8)
請用 chcp 950 調回繁體中文語系方可正常使用
訂閱:
文章 (Atom)