Thread overview
Re: Code::Blocks
Sep 18, 2013
Russel Winder
Sep 18, 2013
Andrej Mitrovic
Sep 18, 2013
Russel Winder
Sep 18, 2013
Andrej Mitrovic
September 18, 2013
On Wed, 2013-09-18 at 17:24 +0100, Russel Winder wrote:
> Has anyone been using Code::Blocks for D programming recently. The page http://wiki.dlang.org/CodeBlocks seems seriously out of date and could do with an update.
> 
> Is a plugin needed for using Code::Blocks for D?

Belay that question, Code::Blocks has done the right thing and found all the D compilers I have all by itself.

Crickey, I am close to being impressed.

-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


September 18, 2013
On 9/18/13, Russel Winder <russel@winder.org.uk> wrote:
> Has anyone been using Code::Blocks for D programming recently. The page http://wiki.dlang.org/CodeBlocks seems seriously out of date and could do with an update.

This is actually the only IDE I've ever really liked back when I experimented with C++. Maybe it's because it has a Scintilla editor, but also because it's very lightweight.

That wiki page could definitely use an update.

So you say it works with D automatically nowadays? Is this using the 12.x release or some nightly build?
September 18, 2013
On Wed, 2013-09-18 at 18:40 +0200, Andrej Mitrovic wrote: […]
> So you say it works with D automatically nowadays? Is this using the 12.x release or some nightly build?

It seems to have premade toolchain setups for DMD, GDC and LDC2, so it is just a matter of specifying the toolchain for a given project.

Well as far as I can tell after 2 mins of fiddling.

Yes this is  Code::Blocks 12.11 which is the standard on Debian Unstable just now.
-- 
Russel. ============================================================================= Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


September 18, 2013
On 9/18/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> So you say it works with D automatically nowadays? Is this using the 12.x release or some nightly build?

Well it doesn't seem to be working for me, it seems to use some kind of custom but broken build process, look:

-----
dmd.exe  -g -debug    -IC:\dmd-git\dmd2\src\druntime\import
-IC:\dmd-git\dmd2\src\phobos  -c hello.d -ofobj\Debug\hello.obj
DMD v2.064 DEBUG
lib.exe bin\Debug\test.exe  obj\Debug\hello.obj   phobos.lib
Digital Mars Librarian Version 8.02n
Copyright (C) Digital Mars 2000-2007 All Rights Reserved
http://www.digitalmars.com/ctg/lib.html
Error: bin\Debug\test.exe : No such file or directory
-----

It seems to use a librarian, since lib.exe was by default configured as the "linker". Changing it to "link.exe" makes no difference, since this is not how the linker is supposed to be invoked. It should be called something like this:

link.exe "bin\Debug","bin\Debug\test.exe",nul,user32+kernel32/noi;

But I don't know how to configure CB to do this.

Btw (for anyone using CB), is there a non-incremental build option in CB? DMD can handle this all automatically, and incremental builds aren't exactly reliable in D.