Author Topic: Using Code::Blocks with D  (Read 2236 times)

Sasszem

  • Guest
Using Code::Blocks with D
« on: August 10, 2016, 06:56:18 pm »
I've just started using Code::Blocks with tha D language, and I'm having a problem.
I want to let Code::Blocks use DUB to build my projects, becouse that's the standard way of doing that, but Code::Blocks uses DMD as a compiler.
I know that it's a simple problem, but I'm new. How can I do that?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Using Code::Blocks with D
« Reply #1 on: August 10, 2016, 08:08:41 pm »
Support fir the D compiler was contributed to C::B. I'm afraid none of us (devs) uses D these days. I personally don't even know what "DUB" is. If its just a different name for the compiler that you can adopt the compiler setup to support that. Compilers can be added or modified quite easily and to quite some extend. If DUB is a D build system with magic foo in it it won't be that easy and my require to adopt the plugin behind the compiler.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7091
    • My Best Post
Re: Using Code::Blocks with D
« Reply #2 on: August 10, 2016, 11:17:12 pm »
Dub is a build tool from what the Internet says.

I would suggest using an Custom Makefile project instead of a normal project.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org