可以尝试添加以下参数来强制导出符号:

dmd -shared -m64 -L/EXPORT:函数名 first_share_win.d

其中,函数名是需要导出的函数名,可以是多个函数名,用逗号隔开。例如:

dmd -shared -m64 -L/EXPORT:function1,function2 first_share_win.d

如果还是无法解决问题,可以考虑使用其他编译器或工具来生成dll,并确保导出符号正确。

windows怎么调试我给php写的dll扩展现在报错PHP Warning PHP Startup Invalid library maybe not a PHP library first_share_windll in Unknown on line 0Warning PHP Startup Invalid library maybe not a PHP library first_sha

原文地址: https://www.cveoy.top/t/topic/g9fS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录