News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Digital Mars D

Started by venix, November 03, 2005, 12:05:30 AM

Previous topic - Next topic

rickg22


Michael

[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

byo

Quote from: Michael on January 05, 2006, 09:46:19 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

Michael

Quote from: byo on January 06, 2006, 06:18:51 PM
Maybe it could be changed because of Code::Blocks  :D

Yes, you're right :D.

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Dannerbeck_Dieter

Support for D?! Ok. Now Code::Blocks is my first choice! I will go for a translation into german.

Zingam

So I cannot get it to work with C::B the latest build? What should I do?

Michael

Quote from: Zingam 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?

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

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Zingam

#22
Yes I use the build from yesterday.


-------------- 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:

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.

Michael

Quote from: Zingam on February 16, 2006, 05:50:17 PM
- Where to find good tutorials/books

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

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Zingam

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

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.

Michael

Quote from: Zingam 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.

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

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Michael

Quote from: sethjackson 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.

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
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Zingam

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.