Dec-Cpp in Windows Vista
Windows Vista has made a fever toward Windows lovers. Like me, I believe that there're many people has upgraded their PC to Windows Vista Series.
Windows Vista 已經在Windows的愛用者族群中造成一股風潮。就像我一樣,我相信已經有許多人將自己的電腦升級到Windows Vista系列產品了。
But for Dev-Cpp users, this may be the begining of nightmare. Dev-Cpp actually can be installed in Vista by using the compatibility setting. And then, progammer can write as usual. Now you want to compile your program, I'm sorry to tell you that it will fail.
但是對Dev-Cpp的使用者而言,這或許是個惡夢的開始。Dev-Cpp的確可以用相容性設定安裝在Vista底下。然後,使用者也可以一如往常的撰寫。現在當你想要編譯你的程式,我很抱歉必須跟你說,會失敗。
No matter how you retry again and again, Dev-Cpp just stands there with glitch. What's wrong?
不論你怎樣的去嘗試,Dev-Cpp就是失靈的呆在一旁。究竟是怎麼一回事呢?
The disposition of environment variables of Dev-Cpp in Vista is abnormal, and this will cause Dev-Cpp can't find the compiler.
因為Dev-Cpp在Vista底下無法正常地配置環境變數,如此一來,造成Dev-Cpp無法找到編譯器的所在。
Since we found the problem, it's easy to modify this bug.
既然我們發現了問題,這樣這個問題就容易修正了。
First, click "Tools" on the bar above the windows, then "Compiler Options," then "Directories" tag, then click the "binaries" tag. Then add the path below:
C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2
首先,先點選在視窗上方橫列的"工具",然後選擇"編譯器選項",再選取"目錄"分頁,選擇其中的"二進位檔"分頁新增下列的路徑:
C:\Dev-Cpp\libexec\gcc\mingw32\3.4.2
Then click "Programs" tag, add the absolute path for each program. Usually, Dev-Cpp will be installed under C:\Dev-Cpp\, then user can add C:\Dev-Cpp\bin\ before each compiler program.
接下來選取"外部程式"的分頁,為每個程式都加上絕對路徑。通常,Dev-Cpp會安裝在C:\Dev-Cpp\當中,則使用者可以在每個編譯程式的路徑前面加上C:\Dev-Cpp\bin\。
Now, you can compile your program again. You will indeed find that Dev-Cpp has revived.
現在,你可以試著再次編譯你得程式看看。你一定會發現Dev-Cpp復活了。
PS:試著寫微軟官網那種有點龜毛的語氣,花了我不少時間啊...不過Dev-Cpp可以用我超開心的!
留言