creating DLL using Tango fails.
Jascha Wetzel
firstname at mainia.de
Thu Jan 17 14:31:28 PST 2008
Sean Kelly wrote:
> Bjoern wrote:
>> DLL creating fails ....
>> C:\dmd\projects>dmd -oftestdll.dll dll.d testdll.def
>> C:\dmd\bin\link.exe
>> dll,testdll.dll,,user32+kernel32,testdll.def/noi+tango-user-
>> dmd.lib;
>> OPTLINK ....
>> OPTLINK : Warning 183: Extension not .RES : tango-user-dmd.lib
>> C:\dmd\bin\..\lib\tango-user-dmd.lib
>> Error 30: Unexpected End of File
>>
>> I use the DMD snapshots updated for 1.025. Tango only.
>>
>> Any ideas ?
>
> One of the items in DFLAGS in sc.ini is this:
>
> -L+tango-user-dmd.lib
>
> It's an instruction to the linker to pull in tango-user-dmd.lib. For
> whatever reason however, the linker doesn't seem to like this when
> you're building a DLL. I don't know why however, nor do I know of a
> simple fix. If someone could suggest one I'd be happy to make any
> necessary changes.
it works for me with:
link
all+my+object+files+separated+with+pluses,my.dll,,user32+kernel32+tango-base-dmd+tango-user-dmd,mydll.def/noi/CODEVIEW
i think the lib file may not be added at the end after the noi option,
but has to added in the libraries-section (sections are separated by
commas),
just for completeness, my .def file:
LIBRARY seatd_scite
DESCRIPTION 'Semantics Aware Tools for D'
EXETYPE NT
SUBSYSTEM WINDOWS
CODE SHARED EXECUTE
DATA WRITE
EXPORTS
get_SciTE_extension
More information about the Digitalmars-d
mailing list