ID Number: Q83230
5.30 | 5.30 | 5.30
MS-DOS | OS/2 | WINDOWS
Summary:
The Microsoft Segmented Executable Linker version 5.3 can be used to
create three different types of executable files: MS-DOS, Windows, and
OS/2. The executable type (EXETYPE) will be determined by the linker
unless it is explicitly specified. EXETYPE will default to different
types depending on the host, the presence of the .DEF file, and the
presence of imports and exports. The following chart summarizes the
default EXETYPE values:
--------------------------------------------------------------------
|Host Operating | No .DEF File | .DEF File |Imports/Exports in Module|
| System | | | and No .DEF File |
--------------------------------------------------------------------
| | | | |
| MS-DOS | MS-DOS | Windows | MS-DOS |
| | | | |
--------------------------------------------------------------------
| | | | |
| OS/2 | OS/2 | Windows | OS/2 |
| | | | |
--------------------------------------------------------------------
In previous versions of the Segmented Executable Linker, the default
EXETYPE when a .DEF file was used was OS/2.
The default EXETYPE can be overridden with an EXETYPE statement in the
module definition (.DEF) file.
More Information:
EXETYPE [descriptor] specifies under which operating system the
program is to run. The <descriptor> sets the target operating system
and can be one of the following values:
<descriptor> Meaning
------------ -------
WINDOWS [version] Default. Windows program. The optional
<version> determines the minimum version of
Windows needed to load the application or DLL.
The default version is 3.0. The syntax for
<version> is
number[.[number]]
where each <number> is a decimal integer.
MS-DOS Nonsegmented executable file. LINK assumes
EXETYPE DOS for an overlaid MS-DOS program.
OS/2 OS/2 1.x segmented executable file.
UNKNOWN Other applications.
Additional reference words: 5.30