Linker problem

Robert Jacques sandford at jhu.edu
Sun Jul 5 19:18:46 PDT 2009


On Sun, 05 Jul 2009 21:55:57 -0400, 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

The DMD zip switched to using dmd\windows\bin and dmd\windows\lib  
recently, so if you simply extracted over-top of the old install, that  
might be your problem. Also, this should probably have been posted on  
D.learn.



More information about the Digitalmars-d mailing list