vs2012配置php扩展开发环境问题

哈德大大 2017-01-19 04:44:38
1>------ 已启动生成: 项目: mytest, 配置: Release Win32 ------
1> mytest.c
1>E:\php\php-7.1.1-src\win32/ioutil.h(368): warning C4996: '_wfopen': This function or variable may be unsafe. Consider using _wfopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> D:\Program Files (x86)\vs\VC\include\wchar.h(838) : 参见“_wfopen”的声明
1>E:\php\php-7.1.1-src\win32/ioutil.h(469): warning C4018: “>”: 有符号/无符号不匹配
1>mytest.c(57): warning C4101: “len”: 未引用的局部变量
1>LINK : warning LNK4075: 忽略“/INCREMENTAL”(由于“/OPT:ICF”规范)
1> 正在创建库 E:\php\php-7.1.1-src\ext\mytest\Release\mytest.lib 和对象 E:\php\php-7.1.1-src\ext\mytest\Release\mytest.exp
1>mytest.obj : error LNK2019: 无法解析的外部符号 __imp__zend_parse_parameters,该符号在函数 _zif_confirm_mytest_compiled 中被引用
1>mytest.obj : error LNK2019: 无法解析的外部符号 __imp__strpprintf,该符号在函数 _zif_confirm_mytest_compiled 中被引用
1>mytest.obj : error LNK2019: 无法解析的外部符号 __imp__php_info_print_table_header,该符号在函数 _zm_info_mytest 中被引用
1>mytest.obj : error LNK2019: 无法解析的外部符号 __imp__php_info_print_table_start,该符号在函数 _zm_info_mytest 中被引用
1>mytest.obj : error LNK2019: 无法解析的外部符号 __imp__php_info_print_table_end,该符号在函数 _zm_info_mytest 中被引用
1>E:\php\php-7.1.1-src\ext\mytest\Release\mytest.dll : fatal error LNK1120: 5 个无法解析的外部命令
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
...全文
188 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
哈德大大 2017-01-22
  • 打赏
  • 举报
回复
也就是需要vs2015吧
哈德大大 2017-01-22
  • 打赏
  • 举报
回复
原来一直搞错了,下的库是64位,一直用32位vs去生成,一直出问题来的
哈德大大 2017-01-22
  • 打赏
  • 举报
回复
使用2015貌似还是会有这个问题
傲雪星枫 2017-01-20
  • 打赏
  • 举报
回复
VC14:Microsoft Visual C 2015 参考:http://www.jxtobo.com/27359.html
xuzuning 2017-01-19
  • 打赏
  • 举报
回复
php7 要用 VC14 编译 vs2012 至多提供到 VC11 应该是不可以的
傲雪星枫 2017-01-19
  • 打赏
  • 举报
回复
mytest是你自己创建的扩展吗? 1>mytest.c(57): warning C4101: “len”: 未引用的局部变量 貌似是你的C代码出问题了,先把C的错误解决吧。 或者可以参考我之前的使用C创建php扩展的代码试试,http://blog.csdn.net/fdipzone/article/details/20870343
哈德大大 2017-01-19
  • 打赏
  • 举报
回复
我在vs里面已经添加了链接库地址了

4,249

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧