This section describes how to compile a File Transfer Program.
Note: Any and all HCON file transfers of API and HLLAPI programs, requiring any type of compilation, must have the -l iconv follow any of the following libraries the customer is compiling with:
Procedures for compiling a file transfer program are outlined in the following sections.
The following example illustrates how to compile a C program and link it with the file transfer library:
cc -o cname cname.c -l fxfer -l iconv
where cname is the C program executable code and cname.c is the actual C file transfer program. The C file transfer program is linked with the libfxfer.a library.
The following example illustrates how to compile a FORTRAN program and link it with the file transfer library:
xlf -v fname.f -o fname -l fxfer -l iconv
where fname.f is the name of the FORTRAN file transfer program and fname is the name of the FORTRAN executable program.
The following example illustrates how to compile a Pascal program and link it with the file transfer library:
xlp -v pname.pas -o pname -l fxfer -l iconv
where pname.pas is the Pascal file transfer program and pname is the Pascal executable code.