The configure program for Windows will search all directories looking for installed versions of libraries such as as expat.lib and openldap.lib. If other programs have versions of these libraries installed, then it is likely that configure will pick the wrong file. This is particularly likely if you have two development environments installed, such as VS.net and MSVC.
To fix this, it is necessary to tell configure not to search in certain directories for files. This can be done by changing the configure command line in the project file, but there are also several predefined environment variables which, if set, will be used by configure to determine which directories to ignore. These variables are set to a list of directories seperated by semicolons (";") :
PWLIB_CONFIGURE_EXCLUDE_DIRS | ignore these directories always |
MSVC_PWLIB_CONFIGURE_EXCLUDE_DIRS | ignore these directories when compiling using MSVC 6 |
VSNET_PWLIB_CONFIGURE_EXCLUDE_DIRS | ignore these directories when compiling using VS.net 2003 |