www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Integrating DMD into IDE (Code::Blocks)

reply Cris <central_p hotmail.com> writes:
We've been discussing the Code::Blocks support with one of its 
developers last night.

Code::Blocks has some basic support for DMD & the D language now and can 
be used to create and compile projects but there are problems. It cannot 
generate debug information.

We have investigated the problem and found out that the switch /CO is 
not passed to the linker link.exe, although -g -debug etc. are passed to 
dmd.exe

Are there any HOWTOs or tips how DMD can be intergrated in a IDE?

Does anybody else use Code::Blocks for D?

     Cris
Feb 26 2006
next sibling parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Cris wrote:

 We've been discussing the Code::Blocks support with one of its developers last
night.
 
 Code::Blocks has some basic support for DMD & the D language now and can be
used to create and compile projects but there are problems. It cannot generate
debug information.
 
 We have investigated the problem and found out that the switch /CO is not
passed to the linker link.exe, although -g -debug etc. are passed to dmd.exe
Sounds like a Code::Blocks problem, and can probably be handled there. (link flags are possible to pass on to DMD, using the -L flag to it...)
 Does anybody else use Code::Blocks for D?
I am using Code::Blocks, but mostly interested in the GNU compilers... (Working on adding support for Mac OS X, and for GDC, to Code::Blocks) --anders
Feb 26 2006
parent reply Cris <central_p hotmail.com> writes:
 Sounds like a Code::Blocks problem, and can probably be handled there.
 (link flags are possible to pass on to DMD, using the -L flag to it...)
 
Yes it is but the problem can be solved by somebody knowledgeable about CB and DMD. CB compiles all .d files one by one and then links them. The flag -L might actually help if I knew how to include it in CB.
 Does anybody else use Code::Blocks for D?
I am using Code::Blocks, but mostly interested in the GNU compilers... (Working on adding support for Mac OS X, and for GDC, to Code::Blocks) --anders
And you are afb?? :)
Feb 26 2006
parent reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Cris wrote:

 I am using Code::Blocks, but mostly interested in the GNU compilers...
 (Working on adding support for Mac OS X, and for GDC, to Code::Blocks)
And you are afb?? :)
Yeah, see my homepage at http://www.algonet.se/~afb/ Or the "gdcmac" and "wxd" projects at SourceForge... Code::Blocks is kinda working on Mac OS X, but it has some layout problems that obscures the text edit area. Details at http://www.algonet.se/~afb/wx/codeblocks.html --anders
Feb 26 2006
parent reply James Dunne <james.jdunne gmail.com> writes:
Anders F Björklund wrote:
 Cris wrote:
 
 I am using Code::Blocks, but mostly interested in the GNU compilers...
 (Working on adding support for Mac OS X, and for GDC, to Code::Blocks)
And you are afb?? :)
Yeah, see my homepage at http://www.algonet.se/~afb/ Or the "gdcmac" and "wxd" projects at SourceForge... Code::Blocks is kinda working on Mac OS X, but it has some layout problems that obscures the text edit area. Details at http://www.algonet.se/~afb/wx/codeblocks.html --anders
Oh, I thought that was an internet acronym for 'away from brain', like afk for 'away from keyboard'. -- Regards, James Dunne
Feb 26 2006
parent =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
James Dunne wrote:

 Oh, I thought that was an internet acronym for 'away from brain'
Only on some days. Saturdays and Mondays likely candidates. :-D It also has another meaning in the US, i.e. http://www.afb.org/ or http://www.af.mil/. But no, it's just my company and initials. --anders
Feb 26 2006
prev sibling parent Cris <central_p hotmail.com> writes:
Any idea why this incorrect code crashesh Code::Blocks when compiling 
with DMD?

     struct VideoMode { int width; int height; };
     enum VideoModes
     {
         VideoMode  vm640x480 = {  width:640, height:480 },
         VideoMode  vm800x600 = {  width:800, height:600 },
         VideoMode vm1024x768 = { width:1024, height:768 },
         VideoMode vm1280x800 = { width:1280, height:800 }
     }
Feb 26 2006