DLL Programmer's Guide for TNS/R Systems
Contents
DLL Programmer’s Guide for TNS/R Systems—522203-002
ii
2. Essential DLL Facility Controls
2. Essential DLL Facility Controls
The Linker’s Command Stream 2-1
Direct Use of the Linker 2-1
Option Types 2-2
Specifying the Linker’s Output 2-2
Choosing the Output File 2-3
Choosing to Create a Program or a DLL 2-3
Naming DLLs 2-3
File-Name Qualification 2-4
At a Glance: Controlling Linker Output When Producing a Loadfile 2-5
Specifying Which Inputs Go into a Link 2-5
Linkfile Inputs 2-6
Library Inputs 2-7
Specifying Where the Linker Can Find Its Inputs 2-8
Files the Linker Opens Normally 2-9
Libraries the Linker Searches For and Opens 2-9
Specifying a User Library for a Program 2-11
At a Glance: Files the Linker Brings into a Link 2-11
Compile-Time Control of Export and Import 2-11
Your Loadfile’s Exported Symbols 2-12
Re-exported libraries 2-13
How to Make Your Loadfile Re-export Symbols of Other DLLs 2-13
Some Examples Using Re-Exportation 2-13
Things to Consider about the Loader 2-16
The Link-Time-Defined Search Path of the Loader 2-16
Unresolved Symbols at Load Time 2-17
Simultaneously Using Different Versions of a DLL 2-17
Default Setting and Checking of File Attributes 2-18
Floating-Point Type 2-18
C++ Dialect 2-19
Execution-Target System Type 2-20
At a Glance: Linker Mandatory Inputs, and Defaults 2-20
Normal Linker Inputs 2-20
Linker Default Operation 2-21
Linker and Loader Errors 2-21