I'm having trouble compiling D programs in Code::Blocks. Here's what I'm doing:
C:\Compilers\dmd2
. I also have the Digital Mars C/C++ compiler at C:\Compilers\dm
.C:\Compilers\dmd2\windows
dmd.exe
dmd.exe
dmd.exe
lib.exe
windbg.exe
rcc.exe
(This is the default file, which does not exist. I'm not sure what to set this to.)make.exe
C:\Compilers\dmd2\windows\lib
C:\Compilers\dmd2\windows\bin
When I start a new D project, I do not see any syntax highlighting. Attempting to compile and run a simple "hello world" program results in the following error:
"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.
What am I doing incorrectly?
After playing around a bit I finally got it to work.
I did a complete reinstall of everything Code::Blocks and Digital Mars.
When I was reinstalling Code::Blocks, I opted-in to the D lexer (which gives me syntax highlighting).
In the new D compiler folder, I removed the folders for Linux and OSX and moved the files from the Windows folder into the main folder.