You can specify libraries and object files as sources in configuration files. To create a target, the linker satisfies references to symbols in these files by searching them in the following order:
For example, consider the following excerpt from a configuration file:
source "a.lib"
target "myprog.exe" { source "myprog.cpp",
"b.lib",
"e.obj",
"c.lib",
"d.obj"}
source "f.lib"
In this example, the files are searched in the following order:
![]()
On OS/2 and Windows NT
platforms, if a library contains a reference to a symbol that is
not known the linker searches first the library that contains the
reference, and then looks all the other libraries in the order
described above.
The paths that VisualAge C++ searches for libraries and object files are established as follows:
![]()
Configuration Files
Search Paths for Primary Source Files
Search Paths for Included Source Files
![]()
Search Paths for Included Source Files
![]()
Add or Change Source
Files
Set Build Options
Build
![]()
Choose Your Run-Time Library
Build with Existing Object Files
and Libraries
