Linker problem

David B. Held dheld at codelogicconsulting.com
Sun Jul 5 18:55:57 PDT 2009


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



More information about the Digitalmars-d mailing list