我在編譯Code :: Blocks中的D程序時遇到問題。這是我在做什麼:使用Code :: Blocks編譯D
- 根據我的組織公約,我已經將Digital Mars D2編譯器解壓到
C:\Compilers\dmd2
。我還有Digital Mars C/C++編譯器C:\Compilers\dm
。 - 對於 「工具鏈的可執行文件」 選項卡中的 「全局編譯器設置」 窗口中,我已經設置了字段...
- 編譯器安裝目錄:
C:\Compilers\dmd2\windows
- C編譯器:
dmd.exe
- C++編譯器:
dmd.exe
- 鏈接動態庫:
dmd.exe
- 鏈接靜態庫:
lib.exe
- 調試器:
windbg.exe
- 資源編譯器:
rcc.exe
(這是默認文件,它不存在。我不知道該設置) - 製作程序:
make.exe
- 編譯器安裝目錄:
- 我有以下列出的其他路徑:
C:\Compilers\dmd2\windows\lib
C:\Compilers\dmd2\windows\bin
當我開始一個新的D項目時,我看不到任何語法突出顯示。試圖編譯和運行一個簡單的「Hello World」程序下面的錯誤結果:
"Hello World in D - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping... Nothing to be done.
我在做什麼錯誤?
沒有。我添加了我的Digital Mars C/C++編譯器的路徑作爲附加路徑,並將字段設置爲'dmc',但問題仍然存在。 – Maxpm 2011-03-31 04:04:01