Skip to main content

response file ( containing list of .OBJ to static link in .EXE|DLL with CBLLINK

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

response file ( containis list of .OBJ to static link in .EXE |DLL with CBLLINK

see .BAT file pasted below

Resolution:

.BAT file showing the use of a response file containing a list of .OBJ to be static linked in the .EXE or DLL to be generated

The interesting command in shell below is:

cbllink -v -d  -OaDll.dll @Cbllink.fil        

see that the CBLLINK command uses here the file Cbllink.fil  which contains a list of .OBJ:

TOclP1.obj

TOclP2.obj

TOclP3.obj

TOclP4.obj

TOclP5.obj

=========================

@echo off

set ProgModelete=P1

del TOclP*.*

rem .................................................................................

:CopyFromP1

copy %ProgModelete%.cbl TOclP1.cbl

copy %ProgModelete%.cbl TOclP2.cbl

copy %ProgModelete%.cbl TOclP3.cbl

copy %ProgModelete%.cbl TOclP4.cbl

copy %ProgModelete%.cbl TOclP5.cbl

:Compil

cobol TOclP1.cbl,TOclP1.obj;

cobol TOclP2.cbl,TOclP2.obj;

cobol TOclP3.cbl,TOclP3.obj;

cobol TOclP4.cbl,TOclP4.obj;

cobol TOclP5.cbl,TOclP5.obj;

echo TOclP1.obj >Cbllink.fil

echo TOclP2.obj >>Cbllink.fil

echo TOclP3.obj >>Cbllink.fil

echo TOclP4.obj >>Cbllink.fil

echo TOclP5.obj >>Cbllink.fil

type                        Cbllink.fil

:Link

cbllink -v -d  -OaDll.dll @Cbllink.fil         <==================

:FIN-OK

del TOclP*.*

rem del Cbllink.fil

Old KB# 1595

0 replies

Be the first to reply!