User forums > Help
[D Programming] Using Codeblocks with Tango
doctor_vitus:
Hi all!
Is there any proper way of programming with Tango under Codeblocks? I cannot figure out any way of configuring build tools like Build or Rebuild.
As a workaround, I compiled my main source module once using Rebuild. Then I added the so generated Tango libraries to the Codeblocks Project. This works so far, but it's far from comfortable, and I was not able to use the debugging functionality this way (any breakpoints seem to be ignored), wheres the debugger works fine for Phobos projects.
My system: Ubuntu 7.04 (Feisty), DMD 1.014, gdb, current Nightly Build of Codeblocks.
Thanks and best regards,
Vitus
stahta01:
I can not answer your questions.
Heres, information for the others, who never heard of tango, it is a software library.
http://www.dsource.org/projects/tango
Tim S
doctor_vitus:
Sorry for not explaining.
Tango is an alternative (and IMHO much better) runtime library for the D Programming Language. The standard runtime library is called Phobos.
afb:
--- Quote from: doctor_vitus on May 23, 2007, 10:52:30 am ---Is there any proper way of programming with Tango under Codeblocks?
--- End quote ---
By default the standard (Phobos) library is assumed, like with the wizards and such.
But you should be able to switch to using Tango insted, provided you add the required
versions such as "Tango" and "Posix" and the required librararies such as "libgtango.a"
--- Quote ---I cannot figure out any way of configuring build tools like Build or Rebuild.
--- End quote ---
Code::Blocks uses a built-in system to compile/link, so it doesn't call external tools
like make or rebuild. This also means that it won't automatically include any imports.
Support for the D language might improve later, but for now it is treated like C/C++.
doctor_vitus:
No, just adding libgtango.a unfortunately won't do (you'ld get a lot of 'undefined reference' messages from the linker this way). The binary libraries of the Tango modules have to be added as well. They are created in the source folder if you use Build or Rebuild [1], and you can add them in Codeblocks afterwards, but (as I wrote) I don't consider this a comfortable and 'straight' way of working. And even worse: I cannot debug such projects.
[1] For my current project, the list of generated Tango libraries looks like this:
tango.core.Type.o
tango.io.Buffer.o
tango.io.Conduit.o
tango.io.Console.o
tango.io.DeviceConduit.o
[...]
tango.text.String.o
tango.text.Util.o
tango.util.time.Utc.o
Edit:
I'm pretty astonished. I reinstalled the binary version of Tango and tried to compile my project with only libtango.a again some a couple of minutes ago, and now it worked, after it had always failed before (with my self compiled tango library). And even the debugger works now!
I don't understand why, but I think you can consider this issue solved.
Thanks! :-)
Navigation
[0] Message Index
[#] Next page
Go to full version