编译PWlib时搜索路径的配置

来源:互联网 发布:照片去除马赛克软件 编辑:程序博客网 时间:2024/04/28 20:58
The Windows configure process for PWLib or OpenH323 is finding the wrong version of a library - how do I stop this?

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