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 |

本文解决PWLib或OpenH323在Windows环境下配置过程中选择错误库版本的问题。介绍如何通过设置特定环境变量来排除某些目录,确保正确版本的库文件被使用。

被折叠的 条评论
为什么被折叠?



