Compiler Options

When compiling the SNALink DLL, 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 WIN32_SUPPORT The macro WIN32_SUPPORT is used in the header files SNA_DLC.H, SNA_CNST.H, and TRACE.H to support variants of the DLC interface for Microsoft® Windows NT® and Microsoft® Windows® 95.
/Gzs z:Use stdcall conventions (only on i386/i486 processors, not MIPS or Alpha).

s:Remove stack check calls.


The following compiler flags are required, but any of the valid options for each flag may be used, as appropriate to your application:

/O Optimization
/W Warning level