 |
Compiler and Linker Settings
| Nik Okuntseff |
MS Exchange Server Programming |
Compiler and Linker Settings
Here is the minimum list of things that you should do in order to compile,
link, and test samples presented here:
1. Have access to a Windows NT Server.
2. Install Microsoft Exchange server on Windows NT Server.
3. Install Platform SDK on Windows NT Server or Windows NT Workstation
computer. It is desirable to have complete Platform SDK installation. In
case you setup your build environment using pieces that Microsoft distributes
over the Internet, you will need to install iBLDENV.Exe, iMSG.Exe, and
iTOOLS.Exe to be able to do most of the work. One thing to remember here
is that Platform SDK is an evolutionary thing. In each new release something
is different. Unfortunately, some things disappear completely from it.
If you discover that an important sample is missing - try to locate it
in previous releases. For example, sample gateway setup program (bin/samplegw
subdirectory) is available on disk 5 of Development Platform U.S. (March
1997 release) and since then appears missing.
4. Install Visual C++ development environment on Windows NT Server
or Windows NT Workstation computer.
5. To compile samples presented below use the following project settings:
- Not using MFC.
- Specify additional libraries to link with: exchsdk.lib, mapi32.lib,
dapi.lib, msvcrt.lib, version.lib.
- Remove LIBC, LIBCD and LIBCMTD default libraries. To do this – either
use Project Settings/Link – Category: Input, Ignore Libraries edit box.
Enter “LIBC,LIBCD,LIBCMTD” string there without quotes. Alternatively,
you can use “/nodefaultlib” switch by adding manually the following string
in the Project Options window: /nodefaultlib:”LIBC” /nodefaultlib:”LIBCD”
/nodfeaultlib:”LIBCMTD”.
Most of sample code coming with this book is accompanied by project files (with .dsp extension),
that already contain required settings (listed in item 5 above). This should simplify the build process for you if you
are going to use the samples. However, correct project settings alone do not guarantee buildability of the code.
You need to make sure that all items above are properly addressed, especially item 3 (Platform SDK installation).
[ Contents |
Home
]
Send comments and suggestions to niko@wrconsulting.com
Copyright © 1997-1998 by Nik Okuntseff
|
 |