Kenwood HP 9000 Personal Computer User Manual


 
Chapter 5 183
Creating and Using Libraries
Using Shared Libraries in 64-bit mode
NOTE If you have data or function names that are duplicated in different
shared libraries, the 64-bit mode linker may link in a different version of
a procedure than the current release. This can lead to unexpected
results.
Figure 5-25 shows an example program with shared libraries (the
shaded boxes are libA.sl dependent libraries; and the example does
not consider libDK or libLH) and compares the two search methods:
Figure 5-25 Search Order of Dependent Libraries
The commands to build the libraries and the executable in Figure 5-25
are shown below. Note the link order of libraries in steps 2 and 3:
a.out
libA
libB
libC
libD libE
libDK
libLH
In 64-bit breadth-first search mode:
a.out --> libA --> libB --> libC -->libD --> libE --> libF --> LibDK --> libLH
In 32-bit depth-first search mode:
a.out --> libA --> libD --> libDK--> libLH --> libE --> LibF --> libB --> libC
libF