在编译grpc的时候报错如下:

[HOSTCXX] Compiling src/compiler/cpp_generator.cc
In file included from third_party/protobuf/src/google/protobuf/stubs/common.h:45:0,from include/grpc++/impl/codegen/config_protobuf.h:23,from ./src/compiler/config.h:22,from ./src/compiler/cpp_generator.h:29,from src/compiler/cpp_generator.cc:21:
third_party/protobuf/src/google/protobuf/stubs/port.h:263:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]#if GOOGLE_PROTOBUF_USE_UNALIGNED^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
third_party/protobuf/src/google/protobuf/stubs/port.h:263:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
third_party/protobuf/src/google/protobuf/stubs/port.h:263:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
third_party/protobuf/src/google/protobuf/stubs/port.h:263:5: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]

解决方法:
在makefile中修改

CXXFLAGS_opt = -fno-exceptionsCXXFLAGS_opt = -fno-exceptions -Wno-expansion-to-defined

报错解决: error: this use of defined may not be portable相关推荐

  1. salmon的报错解决error while loading shared libraries: libboost_iostreams.so.1.60.0

    使用conda安装的软件salmon时报错为 error while loading shared libraries: libboost_iostreams.so.1.60.0 报错原因: cond ...

  2. 报错解决Error parsing Mapper XML

    Error parsing Mapper XML 这个报错本质来说是mapper.xml出现错误 相同的还有 failed resolve xxx.xml等 这里分析一些编写时不会明显爆红,启动报错的 ...

  3. 服务器使用mysql -u root -p报错解决

    服务器使用mysql -u root -p报错解决ERROR 1698 (28000): Access denied for user 'root'@'localhost' 经过搜索,发现可能是以下原 ...

  4. Vue报错:Error in v-on handler: “ReferenceError: regeneratorRuntime is not defined“

    项目中使用了async/await Vue报错:Error in v-on handler: "ReferenceError: regeneratorRuntime is not defin ...

  5. Android studio 报错解决:Error:SSL peer shut down incorrectly

    此文首发于我的Jekyll博客:zhang0peter的个人博客 很久没用 Android studio 了,刚刚在打开一个项目的biuld过程中报错: SSL peer shut down inco ...

  6. Reids报错解决:Job for redis-server.service failed because the control process exited with error code.

    此文首发于我的个人博客:Reids报错解决 Job for redis-server.service failed because the control process exited with er ...

  7. Sublime Text 3便携版下载安装和常用插件安装--顺便解决报错An error occured installing和no packages available for install

    文章目录 Sublime Text 3便携版下载安装和常用插件安装 1.Sublime Text 3便携版下载: 2.sublime 插件控制器(Package Control)安装 2.1离线安装P ...

  8. mysql 报错 get error 28 from storage engine 解决方法

    mysql 报错 get error 28 from storage engine 解决方法 参考文章: (1)mysql 报错 get error 28 from storage engine 解决 ...

  9. Module build failed: Error: Cannot find module ‘node-sass‘ Require stack报错解决

    Module build failed: Error: Cannot find module 'node-sass' Require stack报错解决 异常信息 解决方法 设置用淘宝镜像下载 npm ...

最新文章

  1. 如何在Eclipse中开启代码自动提示功能
  2. oracle显示当天日期函数,oracle日期函数
  3. acwing算法题--分组背包问题
  4. sqlserver查看跟某个表相关的所有存储过程
  5. Docker创建Dockerfile脚本构建jdk1.8镜像并启动容器示例
  6. 滚动条颜色样式设置 说明
  7. 关于工业交换机技术的简单总结
  8. 获国际架构顶会ATC2021最佳论文!Fuxi2.0去中心化的调度架构详解
  9. Sublime Text 4不显示未注册的方法
  10. 一件事情没弄清楚,十有八九做不好
  11. 1 二进制(glibc版)安装MySQL实现主从复制(亲测)
  12. 如何在MySQL中重置AUTO_INCREMENT?
  13. html的table效果,html的table用法(让网页的视觉效果显示出来)
  14. 国土档案管理信息系统【辅助说明】
  15. Linux -- 代理服务器(Squid Server)的配置与应用2
  16. 开发一个App大概要多少钱?
  17. android 加载高德地图api,Android应用引入高德地图API
  18. 模糊神经网络应用实例,神经网络与模糊控制
  19. matlab提取数据的一部分,matlab如何提取数组中的满足一定范围的一段数据
  20. 用Python实现微信公众号WCI指数计算器

热门文章

  1. Windows10远程访问Jupyter notebook
  2. Matplotlib 放置legend(bbox_to_anchor)
  3. python环境配置是什么意思_python环境搭建
  4. ggplot2 调整绘图区域大小
  5. MBE:ggtreeExtra-用图层叠加方法绘制环形进化树
  6. Nature调查:6%中国科研人年薪超50万元!
  7. Linux Shell Tips小技巧
  8. 扩增子统计绘图3热图:样品相关分析,差异OTU/ASV
  9. QIIME 2用户文档. 6沙漠土壤分析Atacama soil(2018.11)
  10. Nature综述:多年冻土的微生物组