Module Definition File Keywords (OS/2, Windows)

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
ALIAS SEGMENTS link(section, name, "A")
BASE BASE link(base, address)
CLASS SEGMENTS N/A
CODE CODE link(code, attributes)
CONFORMING CODE
SEGMENTS
link(code, "C")
link(section, name, "C")
CONSTANT EXPORTS link(export, ...) or
link(exportList, fileName)
CONTINGUOUS SEGMENTS link(section, name, "G")
DATA DATA link(data, attributes)
DECORATED EXPORTS N/A
DESCRIPTION DESCRIPTION link(versionString, string)
DISCARDABLE CODE
SEGMENTS
link(code, "D")
link(section, name, "D")
DYNAMIC SEGMENTS link(section, name, "H")
EXECUTEONLY
EXECUTE-ONLY
CODE
SEGMENTS
link(code, "X")
link(section, name, "X")
EXECUTEREAD CODE
SEGMENTS
link(code, "RX")
link(section, name, "RX")
EXETYPE EXETYPE N/A
EXPORTS EXPORTS link(exportAll) or
link(export_NameSpace, name) or
link(export_Prefix, string) or
link(export, ...) or
link(exportList, fileName)
FIXED SEGMENTS no "D" attribute in
link(section, name, attributes)
HEAPSIZE HEAPSIZE N/A
link(heap, ...)
IOPL SEGMENTS link(section, name, "I")
IMPORTS IMPORTS source import_library_name
or link(import, ...)
IMPURE SEGMENTS no "S" attribute in
link(section, name, attributes)
INITGLOBAL LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(dllInitInstance, no)
INITINSTANCE LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(dllInitInstance, no)
INVALID SEGMENTS N/A
LIBRARY LIBRARY target [dll] fileName
LOADONCALL SEGMENTS N/A
LONGNAMES NAME
LIBRARY
N/A
MAXVAL HEAPSIZE N/A
MOVABLE
MOVEABLE
SEGMENTS link(section, name, "D")
MULITPLE DATA
SEGMENTS
no "S" attribute in
link(data, attributes)
link(section, name, attributes)
NAME NAME target [exe] fileName
NOIOPL SEGMENTS no "I" attribute in
link(section, name, attributes)
NONAME EXPORTS link(export, ...) or
link(exportList, fileName)
NONCONFORMING CODE
SEGMENTS
no "C" attribute in
link(code, attributes)
link(section, name, attributes)
NONDISCARDABLE CODE
SEGMENTS
no "D" attribute in
link(code, attributes)
link(section, name, attributes)
NONE DATA
SEGMENTS
N/A
NONE STUB link(stub, no)
NONSHARED SEGMENTS no "S" attribute in
link(section, name, attributes)
NOTWINDOWCOMPAT NAME
LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(pmType, NOVIO)
OLD OLD N/A
ORDER ORDER N/A
OS2 EXETYPE N/A
PHYSICAL DEVICE PHYSICAL DEVICE target [pdd] fileName
PRELOAD SEGMENTS N/A
PROTECT NAME
LIBRARY
N/A
PURE SEGMENTS link(section, name, "S")
READONLY DATA
SEGMENTS
no "W" attribute in
link(data, "R")
link(section, name, "R")
READWRITE DATA
SEGMENTS
link(data, "RW")
link(section, name, "RW")
RESIDENT SEGMENTS link(section, name, "L")
RESIDENTNAME EXPORTS link(export, ...) or
link(exportList, fileName)
ROBASE ROBASE N/A
SEGMENTS SEGMENTS link(section, name, attributes)
SHARED SEGMENTS link(section, name, "S")
SINGLE DATA
SEGMENTS
N/A
STACKSIZE STACKSIZE link(stack, reserve, commit)
STUB STUB link(stub[, fileName]) or
link(stub, no)
SWAPPABLE SEGMENTS no "L" attribute in
link(section, name, attributes)
TERMGLOBAL LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(dllTermInstance, no)
TERMINSTANCE LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(dllTermInstance)
UNKNOWN EXETYPE N/A
VIRTUAL DEVICE VIRTUAL DEVICE target [vdd] fileName
VERSION VERSION link(version, major[, minor])
WINDOWAPI NAME
LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(pmType, PM)
WINDOWCOMPAT NAME
LIBRARY
VIRTUAL DEVICE
PHYSICAL DEVICE
link(pmType, VIO)
WINDOWS 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