Kenwood HP 9000 Personal Computer User Manual


 
200 Chapter 6
Shared Library Management Routines
Using Shared Libraries with cc and ld Options
Using Shared Libraries with cc and ld
Options
In 32-bit mode, you can access the shl_load family of routines
specifying the -ldld option on the cc(1) or ld(1) command line. In 64-bit
mode, you can access the shl_load and dlopen routines by specifying
either -ldld or -ldl on the command line.
Some 32-bit mode implementations do not, by default, export all symbols
defined by a program (instead exporting only those symbols imported by
a shared library seen at link time). Use the -E option to ld to ensure that
all symbols defined in the program are available to the loaded libraries.
This is the default behavior in 64-bit mode.
To create shared libraries, compile source files and link the resultant
object files with the -b with the cc or ld command.