Code::Blocks Forums

User forums => Help => Topic started by: jpattee on September 15, 2005, 10:36:14 pm

Title: Linking a Digital Mars DLL
Post by: jpattee 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
 
Title: Re: Linking a Digital Mars DLL
Post by: jpattee 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.