Linker problem

Jarrett Billingsley jarrett.billingsley at gmail.com
Sun Jul 5 19:19:49 PDT 2009


On Sun, Jul 5, 2009 at 9:55 PM, David B.
Held<dheld at codelogicconsulting.com> wrote:
> This is probably just a stupid configuration error, but I just upgraded to
> 2.029 and now I have this problem:
>
> t.d:
> void main()
> {
>    Object o = new Exception("error");
> }
>
>>dmd t.d
> OPTLINK (R) for Win32  Release 8.00.1
> Copyright (C) Digital Mars 1989-2004  All rights reserved.
> t.obj(t)
>  Error 42: Symbol Undefined _D6object9Exception6__ctorMFAyaZC9Exception
> --- errorlevel 1
>
> I have:
>
> \dmd
>  \bin
>  \lib
>    phobos.lib
>  \src
>
> and my sc.ini in \dmd\bin looks like so:
>
> LIB=\dmd\lib;\dm\lib
> DFLAGS="-I\dmd\src\phobos" "-I\dmd\src\druntime\import"
> LINKCMD=%@P%\link.exe
>
> Obviously, I'm running on Windoze (never had these problems on Linux :( ).
>  Any ideas?
>
> Dave

If you installed this over top of a previous install, try just
unzipping into a clean directory.  I remember mysterious linker errors
when upgrading DMD2 from pre-2.020 that disappeared when I used a
clean install.



More information about the Digitalmars-d mailing list