ld Manual

Introduction to ld
ld Manual529650.001
1-6
Running Windows ld on the PC
Directory Structure of Windows ld
Compilers That Can Launch Windows ld
Windows ld is a component of these Windows-based cross-compilers, which can
launch it automatically after compilation:
When a compiler launches Windows ld, the compiler driver selects the correct run-
time libraries.
The command in Example 1-7 runs the native COBOL85 compiler, nmcobol,
compiling the source files text3.cob and text4.cob, and then launches
Windows ld, producing the executable file pcoss.exe for the OSS environment.
How Windows ld Differs from ld
Windows ld object files are compatible with NonStop OS object files. You can build
object files on either of these platforms and then link them on the other.
Linking object files on Windows ld is usually much faster than linking them on the
NonStop OS environment.
Directory Files
bin
ld.exe
cmplr
ld.dll
lib Libraries for linking
Note. On the PC, you must use -l or -lib
on the command line to specify the location for ld to
look for DLLs and archives. You cannot use standard library locations.
Compiler Compiler Driver DLL
Native C/C++ c89.dll
Native COBOL coboldvr.dll
pTAL ptaldvr.dll
Example 1-7. Running nmcobol and Launching Windows ld
nmcobol text3.cob text4.cob -Wsystype=oss -o pcoss.exe