2 未解决的外部因素
我正在尝试编译 hello world php 扩展项目,但收到 2 个有关未解析外部的错误。我不确定如何解决这个问题,有人可以告诉我可能是什么问题吗?
1>CustomExt.obj : error LNK2019: unresolved external symbol __imp___estrndup referenced in function "void __cdecl zif_DoubleUp(int,struct _zval_struct *,struct _zval_struct * *,struct _zval_struct *,int,void * * *)" (?zif_DoubleUp@@YAXHPAU_zval_struct@@PAPAU1@0HPAPAPAX@Z)
1>CustomExt.obj : error LNK2019: unresolved external symbol __imp__zend_parse_parameters referenced in function "void __cdecl zif_DoubleUp(int,struct _zval_struct *,struct _zval_struct * *,struct _zval_struct *,int,void * * *)" (?zif_DoubleUp@@YAXHPAU_zval_struct@@PAPAU1@0HPAPAPAX@Z)
I'm trying to compile a hello world php extension project and I'm getting 2 errors about unresolved externals. I'm not sure how to troubleshoot this, can someone tell me what might be the problem?
project file here and you can also see the code in this post
1>CustomExt.obj : error LNK2019: unresolved external symbol __imp___estrndup referenced in function "void __cdecl zif_DoubleUp(int,struct _zval_struct *,struct _zval_struct * *,struct _zval_struct *,int,void * * *)" (?zif_DoubleUp@@YAXHPAU_zval_struct@@PAPAU1@0HPAPAPAX@Z)
1>CustomExt.obj : error LNK2019: unresolved external symbol __imp__zend_parse_parameters referenced in function "void __cdecl zif_DoubleUp(int,struct _zval_struct *,struct _zval_struct * *,struct _zval_struct *,int,void * * *)" (?zif_DoubleUp@@YAXHPAU_zval_struct@@PAPAU1@0HPAPAPAX@Z)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确定
estrndup()
和zend_parse_parameters()
位于哪个 *.lib 或 .o 文件中,并告诉链接器在链接阶段添加此类文件。Determine in which *.lib or .o file
estrndup()
andzend_parse_parameters()
are located and tell the linker to add such file(s) during the link phase.