Hello,

I am using BC5.02 as an IDE tool for my MASM32 projects.
I have created a project with multiple .asm files, a .def file etc.
Everything worked fine until the project became too large.
link.exe issues the following error:
"Command line too long to run: c:\masm32\bin\link.exe"

I solved the problem by including multiple .asm files into one.

Does anyone has other ideas?

Thanks in advance!
Greetings!
Maldoror
Posted on 2001-11-05 04:32:23 by Maldoror
You link a link response file. There you can put all the parameters you pass tyo link.

For example if you have this:



link -SUBSYSTEM:WINDOWS one.obj two.obj libOne.lib libTwo.lib


You can do this:



link @link.txt


given that link.txt is a text file, and could be any file name. Inside link.txt you put



-SUBSYSTEM:WINDOWS
one.obj
two.obj
libOne.lib
libTwo.lib


As you can see you put each option on a different line of a response file.

Here is how you use it on a make file:



EXENAME= out.exe

OBJS = \
one.obj \
two.obj

LIBS = \
libOne.lib \
libTwo.lib

.asm.obj:
ml -c -coff -nologo $<

$(EXENAME): $(OBJS)
link @<<
-out:$(EXENAME)
-SUBSYSTEM:WINDOWS
$(OBJS)
$(LIBS)
<<
Posted on 2001-11-05 05:45:44 by dxantos