Re: [protobuf] proto3 backward compatibility problem

2015-09-14 Thread sam sun
Since the map type is important to me, i decided to use proto3, so i moved hashLong method from com.google.protobuf.Internal.hashLong/hashEnum/xx to GeneratedMessage in proto3 source code and solved the problem, however, to maintain a special version by myself is really a bad idea. I do

Re: [protobuf] MSVS 2013 Linker error, while trying to use proto

2015-09-14 Thread 'Feng Xiao' via Protocol Buffers
Have you been able to build the bundled protobuf tests successfully? On Mon, Sep 14, 2015 at 2:50 AM, Александр Куринной wrote: > Hey, i'm trying to use protocol buffers, but i keep getting LNK2001 error > no matter, what i do > > Error 1 error LNK2001: unresolved external

Re: [protobuf] demo with protobuf-3.0.0-beta-1: unresolved external symbol

2015-09-14 Thread 'Feng Xiao' via Protocol Buffers
Hi, This is a known issue: https://github.com/google/protobuf/issues/240 Someone has already posted a solution to address this problem and you can give it a try. On Mon, Sep 14, 2015 at 12:45 AM, wrote: > Hi All, > > I compiled my demo to practice the protobuf ,

Re: [protobuf] proto3 backward compatibility problem

2015-09-14 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Sep 14, 2015 at 5:23 AM, sam sun wrote: > Since the map type is important to me, i decided to use proto3, so i moved > hashLong method from com.google.protobuf.Internal.hashLong/hashEnum/xx > to GeneratedMessage in proto3 source code and solved the problem, however,

[protobuf] MSVS 2013 Linker error, while trying to use proto

2015-09-14 Thread Александр Куринной
Hey, i'm trying to use protocol buffers, but i keep getting LNK2001 error no matter, what i do Error 1 error LNK2001: unresolved external symbol "class std::basic_string const * const google::protobuf::internal::empty_string_"

[protobuf] Demo with protobuf-3.0.0-beta-1: unresolved external symbol when

2015-09-14 Thread baoshanqiang
Hi all, When I am compiling my demo with protobuf-3.0.0-beta-1, Debug & x64 can be compiled successfully, but Release & x64 can not be compiled successfully. the LINK ERROR is "public: static class google::protobuf::Arena * __cdecl

[protobuf] demo with protobuf-3.0.0-beta-1: unresolved external symbol

2015-09-14 Thread baoshanqiang
Hi All, I compiled my demo to practice the protobuf , but LINKED ERROR. It is VS2015. And the Debug & x64 is OK。 I have try my best to deal with this problem, oh. Please help me , thanks a lot!

Re: [protobuf] compilation error for "undefined reference to `google::protobuf::internal::AtomicOps_Internalx86CPUFeatures'"

2015-09-14 Thread kushal umarkar
Thank you Feng. I could resolve issue by adding atomicops_internal_x86_gcc.cc file in a build. Actually I am using Jambuild so in Jamfile it was miss placed. On Friday, 11 September 2015 23:35:38 UTC+5:30, Feng Xiao wrote: > > > > On Fri, Sep 11, 2015 at 4:44 AM, kushal umarkar