1
votes

I am using protocol buffer first time. I am able to make and compile .proto

file from protoc (protoc-3.9.1-win64). But problem is that when i want to use

compiled files i am getting error google/protobuf/*.h not found even i have

setup include path to ./protoc-3.9.1-win64/include.

include folder of protoc's contain only contain .proto files

there are no header files in it ?

enter image description here

do i need to build from source ?

1
Which header files are not found? - john
google/protobuf/*h i.e. #include <google/protobuf/port_def.inc> - Mohit
copy headers from source code and try, github.com/protocolbuffers/protobuf/archive/v3.9.1.zip - ChauhanTs

1 Answers

0
votes

You have downloaded the package for the protoc compiler.

However, the C++ library is in separate package, protobuf-cpp-3.9.1.zip, where cpp stands for C++. There are multiple packages available for other languages, too.