首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
mac编译失败报错error: conflicting types for 'swoole_sendfile'
/Users/lanya/swoole/src/os/sendfile.c:23:5: error: conflicting types for 'swoole_sendfile' int swoole_sendfile(int out_fd, int in_fd, off_t *offset, off_t size) ^ /Users/lanya/swoole/include/swoole.h:2166:5: note: previous declaration is here int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size); ^ 1 error generated. make: *** [src/os/sendfile.lo] Error 1 lanya@lanyadeMacBook-Pro:~/swoole (master)$ php -v PHP 7.1.16 (cli) (built: Apr 10 2018 14:39:53) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
发布于7年前 · 1 次浏览 · 来自
提问
冲
冲向吉野舰
/Users/lanya/swoole/src/os/sendfile.c:23:5: error: conflicting types for 'swoole_sendfile' int swoole_sendfile(int out_fd, int in_fd, off_t *offset, off_t size) ^ /Users/lanya/swoole/include/swoole.h:2166:5: note: previous declaration is here int swoole_sendfile(int out_fd, int in_fd, off_t *offset, size_t size); ^ 1 error generated. make: *** [src/os/sendfile.lo] Error 1 lanya@lanyadeMacBook-Pro:~/swoole (master)$ php -v PHP 7.1.16 (cli) (built: Apr 10 2018 14:39:53) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2019-08-15
o
oοゞ小鱼≈
请使用`2.1.3`或`1.10.3`版本
赞
0
回复
2019-08-20
大
大大撒
感谢提醒,我用了2.0.12 测试编译通过。
赞
0
回复
2019-09-06
迪
迪迦奥特曼
一样的错误 我试了用2.1.3和1.10.3版本安装 还是不成功 啊
赞
0
回复