PROTOBUF_INLINE_NOT_IN_HEADERS

谁说我不能喝 提交于 2019-12-06 12:05:04

I had the same problem on Ubuntu 14.04 and I fix it as you said . But I am just writing to explain more the issue.
So , After googling the error I found this discussion . In which they describe that the problem arises from the fact that the google coders are relying on the fact that the C++ standard allows you to treat an undefined preprocessor symbol as evaluating to 0. So there is a bunch of #if directives testing the value of PROTOBUF_INLINE_NOT_IN_HEADERS when it hasn’t been defined anywhere; this is legal and should be treated as if it’s a zero.
I fixed this by adding -DPROTOBUF_INLINE_NOT_IN_HEADERS=0 into CCFLAGS in the the top-level SConstruct and CXXFLAGS in src/SConscript (CXXFLAGS) and that seemed to catch it.

So to fix this , you should add this line in the CMakeList.txt that you find in opentxs main folder :

add_definitions(-DPROTOBUF_INLINE_NOT_IN_HEADERS=0)

And don't forget to repeat the cmake step .

Hope this is more clear and helpful .

Fixed this by adding this line at the top of the CMakelists.txt

add_definitions(-DPROTOBUF_INLINE_NOT_IN_HEADERS=0)
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!