| Thread overview | |||||||
|---|---|---|---|---|---|---|---|
|
December 03, 2008 when I compile my compiler don't found the standard library | ||||
|---|---|---|---|---|
| ||||
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? | ||||
December 03, 2008 Re: when I compile my compiler don't found the standard library | ||||
|---|---|---|---|---|
| ||||
Posted in reply to lechon | 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?
| |||
December 03, 2008 Re: when I compile my compiler don't found the standard library | ||||
|---|---|---|---|---|
| ||||
Posted in reply to lechon | 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 | |||
December 03, 2008 Re: when I compile my compiler don't found the standard library | ||||
|---|---|---|---|---|
| ||||
Posted in reply to lechon | 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? | |||
December 03, 2008 Re: when I compile my compiler don't found the standard library | ||||
|---|---|---|---|---|
| ||||
Posted in reply to lechon | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply