rocketmq-client-php icon indicating copy to clipboard operation
rocketmq-client-php copied to clipboard

Undefined symbols for architecture x86_64

Open xzd opened this issue 5 years ago • 6 comments

macOS 10.13 环境

编译出错 image

把 param[1] 强制转换为 int 型后,在编译出现下面错误 image

修改为 const int64_t result = this->_iter - this->_vec.begin(); return new Php::Value(result); 出现新的错误 image

麻烦看下

xzd avatar Mar 31 '20 08:03 xzd

尴尬,我是在Centos 下编译的,暂时没有MacOS 环境

lpflpf avatar Mar 31 '20 09:03 lpflpf

尴尬,我是在Centos 下编译的,暂时没有MacOS 环境

老哥,有没有办法抢救一下

xzd avatar Mar 31 '20 09:03 xzd

和这个 warning 是否有关? image

xzd avatar Mar 31 '20 09:03 xzd

你使用的c++ 的版本是哪个? 加我QQ 看下把 634626165

lpflpf avatar Apr 10 '20 05:04 lpflpf

Had the same issue (MacOS, PHP 7.4.6), fixed simply with setLogFileSizeAndNum((int)param[0], (int)param[1]) in all places where this error was. Can create a PR if needed and if it's a proper fix :)

ksimka avatar Oct 09 '20 21:10 ksimka

兄弟,你这个问题解决了吗?我也遇到了这个问题,和你的情况一模一样,我也试着去改了数据类型,但是报的错误和你一样。如果你解决了,方便给我留个言教我一下吗?谢谢! image

Chrdai avatar Nov 23 '21 20:11 Chrdai