我正在使用一个包(SAP RFC连接器)一段时间了,从这里检索到 https://github.com/gkralik/php7-sapnwrfc该软件包在所有PHP版本上都按预期工作,直到7.4.2与源代码构建。我已经从VS2015和VS2019的源代码构建了php_sapnwrfc.dll,但由于这些错误,我无法解决它的工作。对于构建,我使用了以下过程:https://gkralik.github.io/php7-sapnwrfc/building.html#building-on-windowshttps://wiki.php.net/internals/windows/stepbystepbuild_sdk_2有人知道如何解决这个问题吗?使用VS2019,我得到了这个错误,但没有人知道它是什么意思,特别是带有核心编号的警告。Warning: PHP Startup:Can't load module 'C:/ownprograms/wamp/bin/php/php7.4.2/ext/php_sapnwrfc.dll' as it's linked with 14.24, but the core is linked with 14.16 in Unknown on line 0使用VS2015,我得到了这个错误,但这是由于编译器。[17-Feb-2020 10:48:43 UTC] PHP Warning: PHP Startup: sapnwrfc: Unable to initialize moduleModule compiled with build ID=API20190902,TS,VS16PHP compiled with build ID=API20190902,TS,VC15These options need to match英文版版本: 7.4.2 交易标准版任何帮助将不胜感激。
1 回答

慕哥9229398
TA贡献1877条经验 获得超6个赞
有人解决了我的问题,这是他的回答。
尝试使用附加的 DLL。我已经为7.4.2和7.4.3构建了它,扩展版本为1.3.0,vc15,ts和x64。它应该工作。php_sapnwrfc.zip
对于除主分支> 7.2 的任何 PHP 版本,您需要使用 VC15(Visual Studio 2017)。我在你的痕迹中看到你正在使用VC16(视觉工作室2019)。
我可以确认我尝试使用VS2015和VS2019构建它,而不是使用VS2017。
谢谢,问题解决了。
- 1 回答
- 0 关注
- 87 浏览
添加回答
举报
0/150
提交
取消