What does this error mean?

Markus Dangl danglm at in.tum.de
Fri Jul 7 17:08:51 PDT 2006


I must somehow have messed up my phobos.lib - i don't know how!
The following code:
---------------------------------------
module test;

private import std.stream;

int main(char[][] args)
{
     Stream stream = new BufferedFile("encodedfile.d", FileMode.OutNew);
     stream.close();

     return 0;
}
---------------------------------------
Seems legal but gives me a linker error that i don't understand at all:
---------------------------------------
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved

C:\D\bin\..\lib\phobos.lib(ti_double)  Offset 1C8BEH Record Type 0091
  Error 1: Previous Definition Different : __init_10TypeInfo_d
C:\D\bin\..\lib\phobos.lib(ti_double)  Offset 1C8D8H Record Type 0091
  Error 1: Previous Definition Different : __Class_10TypeInfo_d
C:\D\bin\..\lib\phobos.lib(ti_double)  Offset 1C8F1H Record Type 0091
  Error 1: Previous Definition Different : __vtbl_10TypeInfo_d
---------------------------------------

Can someone explain this to me?



More information about the Digitalmars-d-learn mailing list