Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Example: linker search rules

This example links four object files to create an executable file named FUN.EXE.

FUN.OBJ TEXT.OBJ TABLE.OBJ CARE.OBJ
NEWLIBV2.LIB
C:\TESTLIB\

The linker searches NEWLIBV2.LIB before searching the default libraries to resolve references. To locate NEWLIBV2.LIB and the default libraries, the linker searches the locations in this order:

  1. Current directory (because NEWLIBV2.LIB was entered without a path)
  2. C:\TESTLIB\ directory
  3. Directories listed in the LIB environment variable

related references
Linker search rules


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)