[protobuf] Linking static Protobuf libraries with VS2012 and CMake

2012-10-20 Thread Klaim J. Lamotte
I've been setting up a project which have several libraries which contain protobuf generated source code. I was using the last stable Protobuf version (from sources) but tried few hours ago with the last trunk version, with the same exact result (but with compilation errors fixed, thumbs up guys

[protobuf] Re: Linking static Protobuf libraries with VS2012 and CMake

2012-10-20 Thread Klaim J. Lamotte
Ok I just found that my executable is using this lib file: protobuf\vsprojects\Release\libprotobuf.lib It's the release build. I don't know why it does that but I supposes it's related to CMake stuffs. I'm not sure though... Still searching. Joel Lamotte -- You received this message because

[protobuf] Re: Linking static Protobuf libraries with VS2012 and CMake

2012-10-20 Thread Klaim J. Lamotte
Nevermind, the problem was related to CMake scripts. I fixed the problem. Joel Lamotte -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To view this discussion on the web visit https://groups.google.com/d/msg/protobuf/-/wQ0jnWc5n7oJ. To pos

[protobuf] How do I check if a message is "complete"?

2013-01-11 Thread Klaim J. Lamotte
Hi, I'm using protobuf 2.5. Looking at the generated code of my messages and the documentation, I don't see a function that would be generated and would know how to check all fields, both required and optional, see if they are all set (check the has_ members). If such function already exists,