DMD 1.028 and 2.012 releases

Walter Bright newshound1 at digitalmars.com
Thu Mar 6 23:41:41 PST 2008


nobody wrote:
> i can't compile programs with writef under Linux.
> 
> import std.stdio;
> void main() {
>     writef("Hello World\n");
>  }
> 
> dmd hello.d
> hello.o: In function `_D3std6format80__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaZv':
> hello.d:(.text._D3std6format80__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaZv+0xa6): undefined reference to `_D3std6format10FormatInfo6flDashMFbZv'
> hello.d:(.text._D3std6format80__T14formattedWriteTS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterTaZ14formattedWriteFKS3std5stdio25__T17PrivateFileWriterTaZ17PrivateFileWriterAxaZv+0xfe): undefined reference to `_D3std6format10FormatInfo6flDashMFbZv'
> hello.o: In function `_D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo':
> hello.d:(.text._D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo+0x73): undefined reference to `_D3std6format10FormatInfo6flDashMFbZv'
> hello.d:(.text._D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo+0x82): undefined reference to `_D3std6format10FormatInfo6flPlusMFbZv'
> hello.d:(.text._D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo+0x91): undefined reference to `_D3std6format10FormatInfo6flHashMFbZv'
> hello.d:(.text._D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo+0xa0): undefined reference to `_D3std6format10FormatInfo6flZeroMFbZv'
> hello.d:(.text._D3std6format25__T15parseFormatSpecTAxaZ15parseFormatSpecFKAxaZS3std6format10FormatInfo+0xaf): undefined reference to `_D3std6format10FormatInfo7flSpaceMFbZv'
> collect2: ld gab 1 als Ende-Status zurück
> --- errorlevel 1
> 
> Switch i back to 2.0.10, all compiles fine.

It works when I try it. I suspect a libphobos2.a mismatch problem on 
your system. Try blowing away every libphobos2.a on your system and 
reinstall.


More information about the Digitalmars-d-announce mailing list