用vc++ 2008编译的php5.3.8扩展,在它被编译的计算机上工作,但如果转移到另一个系统就不能工作了


Compiled php5.3.8 extension with VC++ 2008, works on the computer it was compiled on, but doesn't work if transferred to another system

我在笔记本电脑上运行wamp-server 2.2,用vs++ 2008编译php 5.3.8扩展DLL,但是当我将DLL复制到另一台电脑上时,它无法运行。DLL只在你编译它的计算机上工作吗?知道吗?谢谢…

你可以使用Dependency Walker来检查缺失的依赖项。
我赌的是Microsoft Visual c++ 2008 SP1可重新分发包(x86)包:

Microsoft Visual c++ 2008 SP1可重新分发包(x86)安装在没有安装Visual c++ 2008 SP1的计算机上运行用Visual c++ SP1开发的应用程序所需的Visual c++库的运行时组件。