DLL Programmer's Guide for TNS/E Systems
Contents
DLL Programmer’s Guide for TNS/E Systems—527252-006
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-3
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-6
Specifying Which Inputs Go into a Link 2-7
Linkfile Inputs 2-7
Library Inputs 2-9
Specifying Where the Linker Can Find Its Inputs 2-9
Files the Linker Opens Normally 2-10
Libraries the Linker Searches For and Opens 2-10
Specifying a User Library for a Program 2-12
At a Glance: Files the Linker Brings into a Link 2-12
Compile-Time Control of Export and Import 2-12
Your Loadfile’s Exported Symbols 2-13
Re-Exported libraries 2-14
How to Make Your Loadfile Re-Export Symbols of Other DLLs 2-14
Some Examples Using Re-Exportation 2-15
Things to Consider about the Loader 2-17
The Link-Time-Defined Search Path of the Loader 2-17
Unresolved Symbols at Load Time 2-18
Simultaneously Using Different Versions of a DLL
2-18
Default Setting and Checking of File Attributes 2-19
Floating-Point Type 2-19
C++ Dialect
2-20
Execution-Target System Type
2-21
At a Glance: Linker Mandatory Inputs, and Defaults 2-22
Normal Linker Inputs
2-22
Linker Default Operation
2-22
Linker and Loader Errors
2-23










