I'm trying to compile a protobuf example from here:
https://developers.google.com/protocol-buffers/docs/cpptutorial.
My system configuration:
- Windows 10 Pro,
- Visual studion 2022 (Community Ed.) with C++ Package for Desktop Development,
- Protobuf v3.20.0 (Latest Version).
I've done the following steps:
1. Compiled protobuf from the source code, successfully ran tests, and got the *install* folder with the files: *bin*, *cmake*, *include*, *lib*
2. After generating .cpp and .h files using *protoc.exe*, I added them to the VS project and also included *libprotobuf.lib*.Then, I specified path to the *include* folder in the project properties -> VC++ Directories -> Include Directories.
3. While building console application in VS 2022, I was getting a lot of errors, which are in the log file I added to this message.