updating druntime

Marco Leise Marco.Leise at gmx.de
Fri Dec 13 11:22:06 PST 2013


Am Fri, 13 Dec 2013 19:48:46 +0100
schrieb "Benji" <romanbeno273 at gmail.com>:

> When I compile it this way: dmd helloa.d -L-lphobos2 -L-lcurl
> Another error appear:
> 
> [...]
> helloa.d:(.text._D3std6format66__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTmZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAammZk+0x45): 
> undefined reference to 
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
> helloa.o: In function 
> `_D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk':
> helloa.d:(.text._D3std6format68__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTmTAyaZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAamAyaZk+0x49): 
> undefined reference to 
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec'
> helloa.o:helloa.d:(.text._D3std6format64__T14formattedWriteTS3std5array17__T8AppenderTAyaZ8AppenderTaTtZ14formattedWriteFNaNfS3std5array17__T8AppenderTAyaZ8AppenderxAatZk+0x40): 
> more undefined references to 
> `_D3std6format18__T10FormatSpecTaZ10FormatSpec6__ctorMFNaNcNfxAaZS3std6format18__T10FormatSpecTaZ10FormatSpec' 
> follow
> collect2: error: ld returned 1 exit status
> 
> After 7 hours of effort and trying everything it still doesn't 
> work :((

And when you compile like this?: dmd helloa.d -L-lcurl
This will link in the static version of Phobos and there is
only one static (.a) Phobos on any system. -L-lphobos2 might
link against the wrong (.so) if you have an old version. I'm
just guessing here.

-- 
Marco



More information about the Digitalmars-d-learn mailing list