Author Topic: DMD 2 on Ubuntu 10.10  (Read 6187 times)

Offline D#Coder

  • Single posting newcomer
  • *
  • Posts: 2
DMD 2 on Ubuntu 10.10
« on: December 24, 2010, 04:52:35 am »
Hi,

I have just started to work on D Programming language and trying to configure the Code::block on Ubuntu 10.10. I have installed the DMD 2 compiler and followed the instruction from the site. When I am trying to build the D Application project in Code::block then it is giving me linker error:

/usr/bin/ld: cannot find -lphobos

When I compiled the .d file in terminal window with "DMD" then I am able to successfully run the D program with the correct output. "toolchain executable" window have following settings:

C Compiler: dmd
C++ Compiler: dmd
Linker for dynamic libs: gcc
Linker for static libs: ar
Debugger: gdb
Make Program: make

Thanks

Offline afb

  • Developer
  • Lives here!
  • *****
  • Posts: 884
Re: DMD 2 on Ubuntu 10.10
« Reply #1 on: December 25, 2010, 12:04:17 pm »
The name of the runtime library ("phobos") is currently hardcoded into the compiler plugin.
Maybe tweaking the linker search path with a symlink would work, but it needs a new plugin.

i.e. DMD compiler plugin doesn't support D2 yet

Offline D#Coder

  • Single posting newcomer
  • *
  • Posts: 2
Re: DMD 2 on Ubuntu 10.10
« Reply #2 on: December 28, 2010, 04:04:58 am »
Thanks for the reply afb. I figured out the solution. It was simple but I am not good with Linux so it gave me some hard time :). Solution was to remove the name "libPhobos" from library settings and just add the name "libPhobos2".