xiaoqi902 opened a new issue #1018: proto文件中使用“errno”字段,编译时报错
URL: https://github.com/apache/incubator-brpc/issues/1018
 
 
   **Describe the bug (描述bug)**
   在proto文件中使用了“errno”字段,编译时报错
   /echo_c++/build/echo.pb.h:199:44: error: 'bthread_errno_location' declared 
as function returning a function
      inline ::google::protobuf::int32 errno() const;
   /echo_c++/build/echo.pb.h:448:56: error: 'bthread_errno_location' declared 
as function returning a function
    inline ::google::protobuf::int32 EchoResponse::errno() const {
   make[2]: *** [CMakeFiles/brpc_server.dir/server.cpp.o] Error 1
   make[1]: *** [CMakeFiles/brpc_server.dir/all] Error 2
   make: *** [all] Error 2
   
   **To Reproduce (复现方法)**
   在protobuf中定义message
   
   message EchoResponse {
         required string message = 1;
         required int32 errno = 2;
   };
   然后编译时就会报上面的错误
   
   **Versions (各种版本)**
   OS: centos7
   Compiler:  gcc4.8.5
   brpc: master
   protobuf:  libprotoc 2.5.0
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to