Author Topic: Digital Mars D  (Read 33950 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Digital Mars D
« Reply #15 on: January 05, 2006, 10:34:55 pm »
If only we had GDC...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #16 on: January 05, 2006, 10:43:41 pm »

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: Digital Mars D
« Reply #17 on: January 06, 2006, 06:18:51 pm »
Anyway D is not so known (a lot of people I have spoken with have never heard about it), there are no published books (may be I am wrong here :)) ...

Maybe it could be changed because of Code::Blocks  :D

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #18 on: January 06, 2006, 06:43:28 pm »
Maybe it could be changed because of Code::Blocks  :D

Yes, you're right :D.

Michael

Dannerbeck_Dieter

  • Guest
Re: Digital Mars D
« Reply #19 on: January 20, 2006, 02:39:38 pm »
Support for D?! Ok. Now Code::Blocks is my first choice! I will go for a translation into german.

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: Digital Mars D
« Reply #20 on: February 16, 2006, 03:21:25 pm »
So I cannot get it to work with C::B the latest build? What should I do?

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #21 on: February 16, 2006, 03:56:51 pm »
So I cannot get it to work with C::B the latest build? What should I do?

Are you using the latest nightly build, right? Which are the problems you are having?

Best wishes,
Michael

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: Digital Mars D
« Reply #22 on: February 16, 2006, 05:50:17 pm »
Yes I use the build from yesterday.

Code
-------------- Build: default in D ---------------
Compiling: main.d
parse     main
semantic  main
object.d: module object cannot read file 'object.d'
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings


I'm trying to compile:

Code
void main()
{
    printf("Hi");
}



I've unpacked these two files:
dmc.zip
dmd.zip
into a subfolder of codeblocks main installation folder -> C:\Program Files\CodeBlocks\digital_mars\d\dmd
then I compiler stettings Digital Mars D -> Programs
C:\Program Files\CodeBlocks\digital_mars\d\dmd
Digital Mars D-> Programs->Additional paths
C:\Program Files\CodeBlocks\digital_mars\d\dm

and
C:\Program Files\CodeBlocks\digital_mars\d\dm\bin


and I cannot compile.

NOTE: I've never used D. I'd like to try it but I don't want to use command line tools? So my questions are:
- How to make Code::Blocks to compile D sources.
- Where to find good tutorials/books
- How can I debug (can I use CB and gdb)?
- Should I always use set D compiler as default before I start a new D project? Can I use C/C++ and D (two compilers, without to select them manually) or a project type can specify which project should use which compiler?


What I've done too is to modificate the Console Application template, so it generates a simple template just like for C.

That's more elaborate now  :shock: I hope somebody can answer my questions :) I really love :) "exotic" things :) like new languages.
« Last Edit: February 16, 2006, 05:52:52 pm by Zingam »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #23 on: February 16, 2006, 06:34:15 pm »
- Where to find good tutorials/books

You can find a lot of D info at the Digital Mars website.

Best wishes,
Michael

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: Digital Mars D
« Reply #24 on: February 16, 2006, 09:50:38 pm »
I've managed to make it compile. But what about debugging. Is debugging of D programs supported within CB and gdb?

I also tried to run gdb from the command line but it says that it cannot recognise the file format of the D program. It works with a C++ program.

sethjackson

  • Guest
Re: Digital Mars D
« Reply #25 on: February 16, 2006, 09:55:11 pm »
I don't see why it would work with GDB..... C++ and D are two different langs and I think that GDB is only for C/C++ AFAIK.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #26 on: February 16, 2006, 10:00:31 pm »
I've managed to make it compile. But what about debugging. Is debugging of D programs supported within CB and gdb?

I also tried to run gdb from the command line but it says that it cannot recognise the file format of the D program. It works with a C++ program.

I have found this link. May be it is useful for you.

Michael

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Digital Mars D
« Reply #27 on: February 16, 2006, 10:02:42 pm »
I don't see why it would work with GDB..... C++ and D are two different langs and I think that GDB is only for C/C++ AFAIK.

Well, I thought the same, but here is what Walter from Digital Mars says (from the link above :)):

Quote
Any debugger that uses standard debugging information. If using linux, you can use gdb. If using Windows, you can use, for example, Microsoft's windbg.exe program (which comes on the DMC++ CD).

Best wishes,
Michael

Offline Zingam

  • Multiple posting newcomer
  • *
  • Posts: 74
Re: Digital Mars D
« Reply #28 on: February 18, 2006, 06:38:09 pm »
It seems to me that CB does not work with DMD properly. It does not apply the switches and sometimes when I set a switch and then reopen the Build options dialog it is not set.

Why are there two discriptions for the -g switch too?

I believe this is a bug? Where should I report it :) and hopefully somebody will fix it.

:) I hope next release of CB with MinGW will feature the GDC and a working debugger in the package too.