Author Topic: Linking a Digital Mars DLL  (Read 4408 times)

jpattee

  • Guest
Linking a Digital Mars DLL
« on: September 15, 2005, 10:36:14 pm »
When linking a Digital Mars DLL I get warnings for "Unknown Option WD" and "No Start Address".  I don't think it is actually linked as a DLL.
Does anyone know the correct options for linking a Digital Mars DLL?

The entire compiler message is:

link.exe /NOLOGO /subsystem:windows -WD    obj\srcAS\ASCase.obj obj\srcAS\ASFormatter.obj obj\srcAS\ASResource.obj obj\srcAS\astyle_main.obj obj\srcAS\ASBeautifier.obj , "bin\AStyle.dll", ,   "kernel32".lib , ,
OPTLINK (R) for Win32  Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
   
OPTLINK : Warning 9: Unknown Option : WD
OPTLINK : Warning 134: No Start Address
Process terminated with status 0 (0 minutes, 5 seconds)
0 errors, 0 warnings
 

jpattee

  • Guest
Re: Linking a Digital Mars DLL
« Reply #1 on: September 16, 2005, 06:22:45 pm »
I found the problem.

The -WD option is the option for the compiler, not the linker.  I removed it from the linker options and added it to the project compiler options.  Everything seems Ok now.