The only solution I could find: instead of using MSVS compilator, I succesfully compiled protobuf with MinGW-w64 compiler for Windows.
On Sunday, 3 April 2022 at 18:53:32 UTC+3 Viktor Sokolov wrote: > 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. > > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/a6ffad71-7641-4c16-bacd-781142692ea9n%40googlegroups.com.
