简体   繁体   中英

2 unresolved externals

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)

确定estrndup()zend_parse_parameters()文件位于哪个* .lib或.o文件中,并告诉链接程序在链接阶段添加此类文件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM