DLL Programmer's Guide for TNS/E Systems
Advanced DLL Facility Controls
DLL Programmer’s Guide for TNS/E Systems—527252-006
5-11
Naming Intermediate Linker Output Files
OSS
The c89 or c99 compiler will run the linker for each module it compiles, unless the -c
option is present. It is somewhat more flexible in allowing you to specify linker
commands to the compiler:
The -L and -l options are passed straight through, with their arguments.
Several other linker options are recognized in -W form; run c89 or c99 with no
command input to see a list.
The -Weld=args option passes args into the eld command stream. For example:
pass a parameterless option: -Weld=-verbose
pass an input filename: -Weld=foo.so
pass a sequence of tokens including blanks: -Weld="-set floattype
neutral_float"
The -Weld_obey=file option passes the named file as an obey file for the linker.
Here's an example that compiles and links a DLL:
c89 dllx.c -o dllx.so -Wshared
(Note that .so is the conventional extension for a DLL on OSS.)
The following example compiles and links a program that uses that DLL and also uses
dynamic loading:
c89 prg.c -o prg -Wcall_shared dllx.so -l zrlddll
Naming Intermediate Linker Output Files
The linker always creates the output in an intermediate file in a link operation, and the
linker gives this intermediate file an internal name. When the operation is complete, the
intermediate file contents are renamed to the file name you specified as the output file.
See Choosing the Output File
on page 2-3. If you want to allow for the linker being
unable to open the output file and store the finished loadfile under the desired name,
you can give the intermediate file a name that you can locate easily; otherwise, you
might have to relink. To do this, you insert the -temp_o <filename> option, where
<filename> is the name you choose.
Controlling What Checks the Linker Makes and Reports
Automatic Messages
The linker reports on its operation using messages that appear in an output listing.
These are reported with a message identifier that indicates the message’s severity as
follows:










