In earlier versions of VisualAge C++ and predecessor products, you used module definition (.def) files to build DLLs and modules that used DLLs. You no longer have to use module definition files explicitly. Now, VisualAge C++ implicitly makes temporary module definition files as required and deletes them at the end of the build process.
The build options that you used to encode in module definition files, are now specified in your configuration file.
The following table lists keywords that were used in module definition files. Some of these are statement keywords and others are attributes of the statements. The first column of the table lists the keywords in alphabetic order and whether it was recognized in .def files on only OS/2 or Windows. The second column names the kind of statements in which the keywords appear. The third column gives the equivalent build option or configuration file directive that you should use in VisualAge C++ builds.
An "N/A" in the third column indicates that the functionality supported by the keyword is not required or supported.
| Keyword | Used with Statement | Now Build With |
|---|---|---|
| SEGMENTS | link(section, name, "A") | |
| BASE | BASE | link(base, address) |
| SEGMENTS | N/A | |
| CODE | link(code, attributes) | |
| CODE SEGMENTS |
link(code, "C") link(section, name, "C") |
|
| EXPORTS | link(export, ...)
or link(exportList, fileName) |
|
| SEGMENTS | link(section, name, "G") | |
| DATA | link(data, attributes) | |
| EXPORTS | N/A | |
| DESCRIPTION | DESCRIPTION | link(versionString, string) |
| CODE SEGMENTS |
link(code, "D") link(section, name, "D") |
|
| SEGMENTS | link(section, name, "H") | |
| CODE SEGMENTS |
link(code, "X") link(section, name, "X") |
|
| CODE SEGMENTS |
link(code, "RX") link(section, name, "RX") |
|
| EXETYPE | N/A | |
| EXPORTS | EXPORTS | link(export, ...) or link(exportList, fileName) |
| SEGMENTS | no "D" attribute in link(section, name, attributes) |
|
| HEAPSIZE | HEAPSIZE | |
| SEGMENTS | link(section, name, "I") | |
| IMPORTS | source import_library_name or link(import, ...) |
|
| SEGMENTS | no "S" attribute in link(section, name, attributes) |
|
| LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(dllInitInstance, no) | |
| LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(dllInitInstance, no) | |
| SEGMENTS | N/A | |
| LIBRARY | LIBRARY | target [dll] fileName |
| SEGMENTS | N/A | |
| NAME LIBRARY |
N/A | |
| HEAPSIZE | N/A | |
| SEGMENTS | link(section, name, "D") | |
| DATA SEGMENTS |
no "S" attribute in link(data, attributes) link(section, name, attributes) |
|
| NAME | NAME | target [exe] fileName |
| SEGMENTS | no "I" attribute in link(section, name, attributes) |
|
| NONAME | EXPORTS | link(export, ...)
or link(exportList, fileName) |
| CODE SEGMENTS |
no "C" attribute in link(code, attributes) link(section, name, attributes) |
|
| CODE SEGMENTS |
no "D" attribute in link(code, attributes) link(section, name, attributes) |
|
| DATA SEGMENTS |
N/A | |
| NONE | STUB | link(stub, no) |
| SEGMENTS | no "S" attribute in link(section, name, attributes) |
|
| NAME LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(pmType, NOVIO) | |
| OLD | N/A | |
| ORDER | N/A | |
| EXETYPE | N/A | |
| PHYSICAL DEVICE | target [pdd] fileName | |
| SEGMENTS | N/A | |
| NAME LIBRARY |
N/A | |
| SEGMENTS | link(section, name, "S") | |
| DATA SEGMENTS |
no "W" attribute in link(data, "R") link(section, name, "R") |
|
| DATA SEGMENTS |
link(data, "RW") link(section, name, "RW") |
|
| SEGMENTS | link(section, name, "L") | |
| EXPORTS | link(export, ...)
or link(exportList, fileName) |
|
| ROBASE | N/A | |
| SEGMENTS | link(section, name, attributes) | |
| SEGMENTS | link(section, name, "S") | |
| DATA SEGMENTS |
N/A | |
| STACKSIZE | STACKSIZE | link(stack, reserve, commit) |
| STUB | STUB | link(stub[,
fileName]) or link(stub, no) |
| SEGMENTS | no "L" attribute in link(section, name, attributes) |
|
| LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(dllTermInstance, no) | |
| LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(dllTermInstance) | |
| EXETYPE | N/A | |
| VIRTUAL DEVICE | target [vdd] fileName | |
| VERSION | VERSION | link(version, major[, minor]) |
| NAME LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(pmType, PM) | |
| NAME LIBRARY VIRTUAL DEVICE PHYSICAL DEVICE |
link(pmType, VIO) | |
| EXETYPE | N/A |
![]()
.def and .exp Files
are Obsolete
Configuration
Files
Static and Dynamic
Link Libraries
![]()
Build Dynamic Link
Libraries
Export Symbols from a
DLL
Build Modules That Use
DLLs
![]()
Link Options
Convert Module
Definition Files
