When you create Microsoft Exchange Server applications, it is important to determine which runtime libraries to include and which should be explicitly excluded. The Visual C++ compiler will not build products that include incompatible libraries. If you have attempted to link an incompatible library, the compiler will return a LNK4098 error.
Multithreaded runtime libraries are not compatible with single threaded libraries. Debug versions are not compatible with nondebug versions. The EXCHSDK.LIB and EXCHSDKD.LIB libraries are used to compile all the sample applications written for multithreaded support.
When programming with Visual C++, you choose or exclude libraries to be used only for the current project workspace.
To include a library for the current workspace, choose the Settings option in the Build menu. Click the C/C++ tab in the Project Settings dialog box. Select a library option from the Use run-time library list box.
To exclude libraries, click the Link tab in the Project Settings dialog box. Use the Ignore libraries or the Ignore all default libraries options to exclude any libraries that conflict.
The VERBOSE switch displays progress messages that indicate the libraries searched. The online Help for the Project Settings dialog box explains how to set the VERBOSE option and other linker options.
For more information about choosing runtime libraries, see Building Sample Applications in the Visual C++ Development Environment and the Visual C++ Programmer's Reference.