-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug #12
Comments
我在CmakeList中使用_D_const_ = __unused__解决了一部分问题,但是在rpc/rpc_session仍然出现了这个bug |
用的编译器是g++11.3 |
您好,对于这个问题,brpc compile failed with error "error: macro "__has_attribute" requires an identifier" #1693 也有相同的问题出现,我使用相同的方法更改,但并未完全解决问题,所以我使用了另一种方法供参考,但这种方法是不推荐的。
编译通过
|
同时libgo也存在相同的问题,我已经在libgo提交了issue。 |
您好,具体是在rpc/rpc_session的哪个部分代码编译有问题 |
感谢您及时的回复
这是参考brpc的方案解决的,但是在后续编译时仍然遇到了下面这个报错,在试过修改系统的方式(上面提到的)后可以通过编译,我认为可能不是代码的问题。ps. libgo在修改
|
晕,这bug完全没有头绪啊😂 |
hhh,我也觉得,之前弄了一天,最后只能改系统那个文件啦,编译完改回来就可以了。 |
我好像找到了,之前模仿libgo写cmake,把这条一起写进CMakeList了 |
尝试了一下,还是出现了这种问题🧐,暂时没什么其他解决办法了 |
我也出现了这个问题,请问还有什么其他的解决方案吗 |
使用Ubuntu22.04 g++10.3编译失败
报错信息:
macro "__has_attribute" requires an identifier 304 | #if __GNUC_PREREQ (2,5) || __glibc_has_attribute (__const__)
The text was updated successfully, but these errors were encountered: