From: Jean Pierre Daviau on
Hi everybody,

>C:\MASM32\BIN\LINK560 mak_flop.asm
Why are these requiring a key to be pressed on the command line?
How can I automatically say yes or no in the makefile?
>
Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994
Copyright (C) Microsoft Corp 1984-1993. All rights reserved.

Run File [mak_flop.exe]:
List File [nul.map]:
Libraries [.lib]:
Definitions File [nul.def]:
mak_flop.asm : fatal error L1101: invalid object module
Object file offset: 1 Record type: 3b
----------------------------------- MAKEFILE -----------------------------
NOM=mak_flop
MAS=C:\masm32\bin
$(NOM).exe: $(NOM).obj
$(MAS)\link560 $(NOM).obj

$(NOM).obj: $(NOM).asm
$(MAS)\ml /Zi /Fl /Fm $(NOM).asm
$(MAS)\ml /Zi /Fl /Fm $(NOM).asm
--
Thanks for your attention.

Jean Pierre Daviau
--
Easyphp1.8 with Apache1.3.24
DEVC++, borland 5.5
windows Xp
asus p4 s533/333/133
Intel(R) Celeron (R) CPU 2.00 GHz
Processor Radeon7000 0x5159 agp


From: Paul Edwards on
"Jean Pierre Daviau" <Once(a)WasEno.ugh> wrote in message news:Nzibh.85468$yQ2.2839457(a)weber.videotron.net...
> >C:\MASM32\BIN\LINK560 mak_flop.asm
> Why are these requiring a key to be pressed on the command line?
> How can I automatically say yes or no in the makefile?

Try adding "<NUL" to the end of your command line.

If that doesn't work, try passing all the parameters link560
is looking for. You can probably let the parameters default
by using a ",".

Do a "link560 /?" to see if that shows the usage.

BFN. Paul.


From: Jean Pierre Daviau on
It does not work.

Valid options are:
/? /ALIGNMENT
/BATCH /CODEVIEW
/CPARMAXALLOC /DOSSEG
/DSALLOCATE /DYNAMIC
/EXEPACK /FARCALLTRANSLATION
/HELP /HIGH
/INFORMATION /LINENUMBERS
/MAP /NODEFAULTLIBRARYSEARCH
/NOEXTDICTIONARY /NOFARCALLTRANSLATION
/NOGROUPASSOCIATION /NOIGNORECASE
/NOLOGO /NONULLSDOSSEG
/NOPACKCODE /NOPACKFUNCTIONS
/NOFREEMEM /OLDOVERLAY
/ONERROR /OVERLAYINTERRUPT
/PACKCODE /PACKDATA
/PACKFUNCTIONS /PAUSE
/PCODE /PMTYPE
/QUICKLIBRARY /SEGMENTS
/STACK /TINY
/WARNFIXUP


From: Paul Edwards on
"Jean Pierre Daviau" <Once(a)WasEno.ugh> wrote in message news:8vYbh.37564$ed6.1280806(a)weber.videotron.net...
> It does not work.
>
> Valid options are:
> /? /ALIGNMENT
> /BATCH /CODEVIEW

What is the exact output of "/?"? It shouldn't have just listed
the options. It should have listed the USAGE also. ie the
positional parameters, not just the options.

BFN. Paul.


From: Frank Kotler on
Jean Pierre Daviau wrote:
> Hi everybody,

Hi Jean,

I don't use that toolset, but...

>>C:\MASM32\BIN\LINK560 mak_flop.asm

Link is unlikely to give good results if passed an .asm file.

> Why are these requiring a key to be pressed on the command line?
> How can I automatically say yes or no in the makefile?

Put a few commas after the *.obj* file name - link myfile.obj,,,, (how
many commas? enough!)

> Microsoft (R) Segmented Executable Linker Version 5.60.339 Dec 5 1994
> Copyright (C) Microsoft Corp 1984-1993. All rights reserved.
>
> Run File [mak_flop.exe]:
> List File [nul.map]:
> Libraries [.lib]:
> Definitions File [nul.def]:
> mak_flop.asm : fatal error L1101: invalid object module
> Object file offset: 1 Record type: 3b

Looking for an .obj file!

> ----------------------------------- MAKEFILE -----------------------------
> NOM=mak_flop
> MAS=C:\masm32\bin
> $(NOM).exe: $(NOM).obj
> $(MAS)\link560 $(NOM).obj

Put enough commas there to shut it up.

> $(NOM).obj: $(NOM).asm
> $(MAS)\ml /Zi /Fl /Fm $(NOM).asm
> $(MAS)\ml /Zi /Fl /Fm $(NOM).asm

Best,
Frank