Use /EXEC to identify the output file as an executable program (.EXE file). The linker generates .EXE files by default.
| /DLL and /EXECUTABLE option syntax |
|---|
|
Default is: /EXECUTABLE
Abbreviation is: /EXEC
If you specify /EXEC with /DLL, only the last specified of the options takes effect.
If you do not specify /EXEC or /DLL, then by default the linker produces an .EXE file.