2个未解决的外部

时间:2011-11-09 09:35:27

标签: php c windows visual-studio-2008 php-extension

我正在尝试编译一个hello world php扩展项目,我收到2个关于未解析的外部错误的错误。我不确定如何排除故障,有人能告诉我可能出现的问题吗?

项目文件here,您还可以在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)

1 个答案:

答案 0 :(得分:4)

确定* .lib或.o文件estrndup()zend_parse_parameters()所在的位置,并告知链接器在链接阶段添加此类文件。