我正在使用一個包(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 關注
- 71 瀏覽
添加回答
舉報
0/150
提交
取消