When compiling the application, the following compiler options are required:
| Option | Explanation |
|---|---|
| /c | Compile only, without linking. Linking is done as a separate phase to include the required Microsoft® SNA Server libraries.
|
| /D NOTRC | The NOTRC macro specifies that internal tracing should not be compiled into the application. See Diagnostics for more information on the use of internal tracing. The /D NOTRC option should be used for building a final system (internal tracing should not be included because it will degrade performance and occupancy). For a development system, you may want to compile with internal tracing; if so, remove the /D NOTRC option.
|
| /D OS2_SUPPORT, /D MSWIN_SUPPORT, /D DOS_SUPPORT, /D WIN32_SUPPORT |
These macros are used in the header files FMI.H and TRACE.H, to support variants of the client interface for the operating systems OS/2, Microsoft® Windows® version 3.x, Microsoft® MS-DOS®, and Microsoft® Windows NT®/Windows 95 respectively. One of these options must be defined, depending on the operating system for which the application is intended. |
| /Gzs | c: | Use stdcall calling conventions on i386/i486 and Pentium processors. |
| S: | Remove stack check calls. | |
| Note:: | ||
| /Gcs | c: | On MIPS, Alpha, and PowerPC processors, use Pascal calling conventions. |
| /G2cs | 2: | Use 286 instructions. |
| c: | Use Pascal calling conventions. | |
| s: | Remove stack check calls. | |
| /Zp | Structures must be packed. | |
| /J | Default character type is unsigned. Not valid under Win32®. | |
The following compiler flags are required, but any of the valid options for each flag may be used, as appropriate to your application:
| /A | Compiler model |
| /O | Optimization |
| /W | Warning level |