首页
下载
文档
社区
视频
捐赠
源代码
赞助商
AOT 编译器
AI 助理
商业产品
PHP AOT 原生编译器
Swoole-Compiler 代码加密器
CRMEB 新零售社交电商系统
登录
注册
全部
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
发表新帖
swoole 编译报错 求大佬帮助
### 问题描述 swoole 编译报错 提示如下: /root/swoole-4.5.0/swoole_table.cc:396:54: note: candidate is: zim_swoole_table___construct(zend_execute_data*, zval*)::__lambda0::operator unsigned int (*)(const char*, size_t)() const <near match> table->hash_func = [](const char *key, size_t len) { ^ /root/swoole-4.5.0/swoole_table.cc:396:54: note: no known conversion for implicit 'this' parameter from 'unsigned int (*)(const char*, size_t) {aka unsigned int (*)(const char*, unsigned int)}' to 'uint64_t (*)(const char*, size_t) {aka long long unsigned int (*)(const char*, unsigned int)}' make: *** [swoole_table.lo] Error 1 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.5 php:7.2 linux gcc:4.8 ### 相关代码 ```php /root/swoole-4.5.0/swoole_table.cc:396:54: note: candidate is: zim_swoole_table___construct(zend_execute_data*, zval*)::__lambda0::operator unsigned int (*)(const char*, size_t)() const <near match> table->hash_func = [](const char *key, size_t len) { ^ /root/swoole-4.5.0/swoole_table.cc:396:54: note: no known conversion for implicit 'this' parameter from 'unsigned int (*)(const char*, size_t) {aka unsigned int (*)(const char*, unsigned int)}' to 'uint64_t (*)(const char*, size_t) {aka long long unsigned int (*)(const char*, unsigned int)}' make: *** [swoole_table.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
发布于6年前 · 1 次浏览 · 来自
提问
handk777
### 问题描述 swoole 编译报错 提示如下: /root/swoole-4.5.0/swoole_table.cc:396:54: note: candidate is: zim_swoole_table___construct(zend_execute_data*, zval*)::__lambda0::operator unsigned int (*)(const char*, size_t)() const <near match> table->hash_func = [](const char *key, size_t len) { ^ /root/swoole-4.5.0/swoole_table.cc:396:54: note: no known conversion for implicit 'this' parameter from 'unsigned int (*)(const char*, size_t) {aka unsigned int (*)(const char*, unsigned int)}' to 'uint64_t (*)(const char*, size_t) {aka long long unsigned int (*)(const char*, unsigned int)}' make: *** [swoole_table.lo] Error 1 ### Swoole版本,PHP版本,以及操作系统版本信息 swoole 4.5 php:7.2 linux gcc:4.8 ### 相关代码 ```php /root/swoole-4.5.0/swoole_table.cc:396:54: note: candidate is: zim_swoole_table___construct(zend_execute_data*, zval*)::__lambda0::operator unsigned int (*)(const char*, size_t)() const <near match> table->hash_func = [](const char *key, size_t len) { ^ /root/swoole-4.5.0/swoole_table.cc:396:54: note: no known conversion for implicit 'this' parameter from 'unsigned int (*)(const char*, size_t) {aka unsigned int (*)(const char*, unsigned int)}' to 'uint64_t (*)(const char*, size_t) {aka long long unsigned int (*)(const char*, unsigned int)}' make: *** [swoole_table.lo] Error 1 ``` ### 你期待的结果是什么?实际看到的错误信息又是什么?
赞
0
收藏
提问
分享
讨论
建议
公告
开发框架
CodeGalaxy
登录
后参与评论
评论
2020-05-01
Twosee
是32位机器吗, 需要更新到master才能修复这个问题
赞
0
回复
2020-05-29
zhule
回复
Twosee
大佬们 这个错误怎么处理呢? Makefile:214: recipe for target 'swoole_serialize.lo' failed make: *** [swoole_serialize.lo] Error 1 ERROR: `make' failed
赞
0
回复