Comment #4 on issue 357 by cauverys...@gmail.com: error messages while compiling a c++ program that uses .proto file.
http://code.google.com/p/protobuf/issues/detail?id=357

hi,

I retained using namespace google::protobuf and used "RpcChannel" instead of "protobuf::RpcChannel". But I got the same errors as above.
However, I tried " #include <google/protobuf/service.h>
using namespace google::protobuf; " , and i got rid of the "RpcChannel does not name a type " error.

I still get a lot of other errors.

$ g++ searchinc.cpp
searchinc.cpp:8:1: error: ‘SearchService’ does not name a type
searchinc.cpp: In function ‘void DoSearch()’:
searchinc.cpp:15:17: error: expected type-specifier before ‘MyRpcChannel’
searchinc.cpp:15:17: error: cannot convert ‘int*’ to ‘google::protobuf::RpcChannel*’ in assignment
searchinc.cpp:15:17: error: expected ‘;’ before ‘MyRpcChannel’
searchinc.cpp:16:20: error: expected type-specifier before ‘MyRpcController’
searchinc.cpp:16:20: error: cannot convert ‘int*’ to ‘google::protobuf::RpcController*’ in assignment
searchinc.cpp:16:20: error: expected ‘;’ before ‘MyRpcController’
searchinc.cpp:20:3: error: ‘service’ was not declared in this scope
searchinc.cpp:20:17: error: expected type-specifier before ‘SearchService’
searchinc.cpp:20:17: error: expected ‘;’ before ‘SearchService’
searchinc.cpp:26:50: error: ‘protobuf’ has not been declared
searchinc.cpp:26:73: error: ‘Done’ was not declared in this scope
searchinc.cpp: In function ‘void Done()’:
searchinc.cpp:30:10: error: ‘service’ was not declared in this scope

Is there a header I missed to include for "service" ??


--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to