Hello, I have installed protocol buffers for c++ as recommended from the following page: https://github.com/protocolbuffers/protobuf/blob/master/src/README.md
The installation went fine without any error. Current version is libprotoc 3.9.2. I have then created a basic eclipse project including the example .proto from https://developers.google.com/protocol-buffers/docs/cpptutorial The generation of .c/.h classes went well also. I have then included the generated classes into the project and created a basic executable: #include "test.pb.h" // this is the generated header from .proto file #include <fstream> int main() { GOOGLE_PROTOBUF_VERIFY_VERSION; tutorial::Person person; person.set_name("John Doe"); person.set_id(1234); person.set_email("[email protected]"); std::ofstream output; output.open("myfile", std::ios::out | std::ios::binary); person.SerializeToOstream(&output); output.close(); google::protobuf::ShutdownProtobufLibrary(); } The project is compiling without any flaws, but when I try to execute it the following error returns: [libprotobuf FATAL google/protobuf/generated_message_util.cc:818] CHECK failed: (scc->visit_status.load(std::memory_order_relaxed)) == (SCCInfoBase::kRunning): terminate called after throwing an instance of 'google::protobuf::FatalException' what(): CHECK failed: (scc->visit_status.load(std::memory_order_relaxed)) == (SCCInfoBase::kRunning): Aborted (core dumped) Can someone help me with that error? -- 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/8d8b58a0-d9af-4f21-90a0-9083e0106f23%40googlegroups.com.
