SYNOPSIS buildclt [ -C ] [ -v ] [ -m {m | l} ] [ -c {m | b | i} ] [ -o name ] [ -f firstfiles ] [ -F Firstlibs ] [ -l libfiles ] [ -W ] [ -O ] [ -P ] [ -d deffile ]
buildclt is used to construct a TUXEDO System/T workstation client program for MS-DOS, Windows, Windows NT, and OS/2. The command combines the files supplied by the -f and -l options with the standard TUXEDO System/T libraries to form an executable program. The load module is built by buildclt using the C and COBOL language compilation commands defined for the operating system in use. The options to buildclt have the following meaning:
The following environment variables must be set for the cobol environment.
The environment variable COBCPY indicates which directories contain a set of COBOL copy files to be used by the COBOL compiler.
The buildclt command assumes that directories for needed libraries are specified in the environment variables INCLUDE and LIB. They might look like the following:
INCLUDE=C:\;TUXEDO\;INCLUDE;C:\NET\TOOLKIT\INCLUDE;C:\MSVC\INCLUDE LIB=C:\NET\TOOLKIT\LIB;C:\WINDEV\LIB;C:\MSVC\LIB;C:\TUXEDO\LIB;
Note that in the above example, C:\MSVC is the directory where MS Visual C++ resides; earlier versions such as C600 or C700 can be used. Note that in the above example, C:\NET is the directory where Novell Lan Workplace resides; earlier versions resided in C:\XLN and can be used.
Note that COBOL source files that reference ATMI calls must be compiled with the LITLINK option.
The names of all libraries used for linking the client followed by the files specified in the -l option are put into a temporary "response file" and linking is done using the command line:
LINK firstfiles, outname @tmpfilefirstfiles are the filenames specified with the -f option, outname is the output file name (default client.exe) tmpfile is the temporary response file name. The -f option should be used to included any necessary options to be passed to LINK (for example, /ST:10000 to set the default stack size to 10000 bytes). The -l option should be used to included any necessary network provider libraries (for example, mlibsock.lib). To create an executable that can be debugged using Codeview (assuming that the object files have been compiled with the -Zi option), use -f /CO.
MS-DOS C Compilation:
buildclt -cm -ml -o emp.exe -f "/CO/ST:10000/SE:200" -f emp.obj \ -l llibsock.libWINDOWS C Compilation:
buildclt -W -cm -mm -o emp.exe -f "/CO emp.obj" -d emp.def rc -k emp.res emp.exeOS2 16-Bit:
buildclt -O -cm -ml -o emp.exe -f "/NOI/ST:15000/CO emp.obj" -d emp.defOS2 32-Bit IBM:
buildclt -O -ci -f "/NOI/ST:25000 /CO emp.obj" -o emp.exeWindows NT:
!include <ntwin32.mak> rc -r emp.rc buildclt -W -f "emp.obj emp.res" -l "$(winlibs)" -oemp.exe DOS/WINDOWS/OS2 COBOL Compilation: COBCPY=C:\TUXEDO\COBINC COBDIR=C:\COBOL\LBR;C:\COBOL\EXEDLL PATH=C:\C700\BIN;C:\COBOL\EXEDLL;... TUXDIR=C:\TUXEDO INCLUDE=C:\TUXEDO\INCLUDE;C:\XLN\TOOLKIT\INCLUDE;C:\C700\INCLUDE LIB=C:\XLN\TOOLKIT\LIB;C:\C700\LIB;C:\TUXEDO\LIB;C:\COBOL\LIB COBOL EMP.CBL OMF"OBJ" LITLINKDOS:
BUILDCLT -C -o EMP.EXE -f EMP+MFC7INTF+C7DOSIF+C7DOSLB \ -f "/NOD/NOE/SE:300/CO/ST:10000" -l LLIBSOCK WINDOWS:BUILDCLT -C -W -o EMP.EXE -f EMP -d EMP.DEF \ -f "/NOD/NOE/CO/SE:300"OS2:BUILDCLT -C -P -o EMP.EXE -f EMP+MFC6INTF+C6OS2IF+C6OS2LB -d EMP.DEF \ -f "/NOD/NOE/SE:300/CO"SEE ALSO
Microsoft C/C++ Programming Techniques, Microsoft Corporation. Micro Focus COBOL/2 Operating Guide, Micro Focus Ltd. Micro Focus COBOL/2 Workbench for DOS and OS2, Micro Focus Ltd.