www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - when I compile my compiler don't found the standard library

reply lechon <jose5sp gmail.com> writes:
hi to all. 

I'm trying to create one program with D using the editor eclipse, that I have
add a plugin for the language D.

My problem arrives when I go to compile, because the program don't found the
library stdio, but If I use the libraries tango, the compiler works perfectly.

żAnybody can help me?
Dec 03 2008
next sibling parent Ary Borenszweig <ary esperanto.org.ar> writes:
lechon wrote:
 hi to all. 
 
 I'm trying to create one program with D using the editor eclipse, that I have
add a plugin for the language D.
 
 My problem arrives when I go to compile, because the program don't found the
library stdio, but If I use the libraries tango, the compiler works perfectly.
 
 żAnybody can help me?

That depends more on your D installation than on the eclipse plugin (I guess Descent?). How did you install D? And how are you compiling from Descent?
Dec 03 2008
prev sibling next sibling parent Lars Kyllingstad <public kyllingen.NOSPAMnet> writes:
lechon wrote:
 hi to all. 
 
 I'm trying to create one program with D using the editor eclipse, that I have
add a plugin for the language D.
 
 My problem arrives when I go to compile, because the program don't found the
library stdio, but If I use the libraries tango, the compiler works perfectly.
 
 żAnybody can help me?

The module std.stdio is a part of Phobos, the standard library for D. Tango is an alternative standard library, meant as a *replacement* for Phobos. My guess is that you have installed the D compiler bundled with Tango. (Am I right?) If you want to use both libraries at the same time, you could install Tangobos: http://www.dsource.org/projects/tangobos Tangobos, however, is primarily meant to make it easy to port legacy code from Phobos to Tango. For new projects it is better to just stick with one standard library. Functions corresponding to the std.stdio ones can be found in the tango.Stdout module. -Lars
Dec 03 2008
prev sibling parent reply lechon <jose5sp gmail.com> writes:
Ari and Lars first of all  thank you for your answer

Yes, I'm using "Descents" plugin and DSSS for compiling.

I have found the file  "libphobos.a"  in the directory /usr/lib. But also I
have the two libraries (libphobos.a and libtango) in the directory of "dmd"
dmd/lib/. 

Where is the correct  directory for the libraries?
Dec 03 2008
parent Lars Kyllingstad <public kyllingen.NOSPAMnet> writes:
lechon wrote:
 Ari and Lars first of all  thank you for your answer
 
 Yes, I'm using "Descents" plugin and DSSS for compiling.
 
 I have found the file  "libphobos.a"  in the directory /usr/lib. But also I
have the two libraries (libphobos.a and libtango) in the directory of "dmd"
dmd/lib/. 
 
 Where is the correct  directory for the libraries?
 

Could it be that one (or both) of the libphobos.a files is a link to libtango.a? I use GDC, and not DMD, so I'm just guessing here. I believe the name of the library is hard-coded into the compiler, so to use Tango one has to replace the actual library file. -Lars
Dec 03 2008