After facing problems with compiling a dll lib out of the asm file, I've tried to compile something ready and safe. I've used files from Iczelion's tutorial, hoping that I'll do that one right.
http://win32assembly.online.fr/tut17.html
C:\asm\test>link /DLL /SUBSYSTEM:WINDOWS /DEF:DLLSkeleton.def /LIBPATH:c:\masm32
\lib DLLSkeleton.obj
link: extra operand `/DEF:DLLSkeleton.def'
Try `link --help' for more information.
From some reason it wont compile, it doesn't accept more than one operand? Is that configuration issue?
That's my target compilation with similar/same problem:
C:\asm\zad4>ml /c /coff biblioteka.asm
Microsoft (R) Macro Assembler Version 6.14.8444
Copyright (C) Microsoft Corp 1981-1997. All rights reserved.
Assembling: biblioteka.asm
C:\asm\zad4>link biblioteka /entry:DllMain /DLL /def:biblioteka.def /subsystem:w
indows /LIBPATH:c:\masm32\lib
link: extra operand `/DLL'
Try `link --help' for more information.
This is the batch file from the DLL example in MASM32.
@echo off
if exist tstdll.obj del tstdll.obj
if exist tstdll.dll del tstdll.dll
\masm32\bin\ml /c /coff tstdll.asm
\masm32\bin\Link /SUBSYSTEM:WINDOWS /DLL /DEF:tstdll.def tstdll.obj
dir tstdll.*
pause