Code::Blocks Forums
User forums => Help => Topic started by: zaravi on December 02, 2010, 08:33:50 am
-
Hi:
first of all: Sorry for my english.
second: i tried to find a topic that help me with this problem, but i could not.
I tried to configure the code::block to use the dmd compiler (d lenguaje). I use the config that i saw in this topic: http://forums.codeblocks.org/index.php/topic,4537.0.html (http://forums.codeblocks.org/index.php/topic,4537.0.html)
from MortenMacFly:
1.) D/L dmd.zip and dmc.zip and extracted them in a directory (just as suggested on the DMD homepage at http://www.digitalmars.com/d/dcompiler.html).
--> This created two sub-folders "dm" and "dmd"
2.) Setup the DMD compiler in C::B:
- set the base path to [DMD]\dmd
- add additional path [DMD]\dm\bin
- setup the compiler include path to [DMD]\dmd\src\dmd and [DMD]\dmd\src\phobos
- setup the linker include path to [DMD]\dmd\lib and [DMD]\dm\lib
- left everything else as it is.
3.) Started the D application wizard, selected "DMD" as compiler --> compiles and runs just fine... no illegal switches, nothing. What is your problem???
With regards, Morten.
But when i try to compile the example (the one that C::B creates) i get this message:
-------------- Build: Debug in Compila ---------------
Compiling: hello.d
object.d: Error: module object is in file 'object.d' which cannot be read
import path[0] = C:\dmd\src\dmd
import path[1] = C:\dmd\src\phobos
import path[2] = C:\dmd\bin\..\..\src\phobos
import path[3] = C:\dmd\bin\..\..\src\druntime\import
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
I use:
- Windows vista
- C::B 10.05 (the one that comes with GCC compiler and GDB debugger from MinGW)
- dmd 2.050
I found some topics but all of them are for Linux.
please can anybody help me?
thanks
-
Your installation of the D Compiler seems broken, please use your favorite search engine to find solutions to you problem.
This is not a C::B issue (probably).
See what I've found: http://dsource.org/forums/viewtopic.php?t=1987