Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Kenton, Thank you. It prints 'libprotoc 2.3.0'. And I have setup my LD_LIBRARY_PATH, PATH, PKG_CONFIG_PATH on my ubuntu env accordingly. $ protoc --version libprotoc 2.3.0 /media/EXTDIV/src/protobuf-2.3.0/examples:1014:14$ make cpp pkg-config --cflags protobuf # fails if protobuf is not

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
Did you previously compile the examples with an older protoc? You need to make clean before trying to compile with a newer protoc. On Wed, Feb 3, 2010 at 9:18 AM, hap 497 hap...@gmail.com wrote: Kenton, Thank you. It prints 'libprotoc 2.3.0'. And I have setup my LD_LIBRARY_PATH, PATH,

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Thanks. No, I have not installed any other version of protoc. But I have installed not in my '/usr/etc' directory, I instead in /meda/EXTDIV/bin', I am not sure if that is a problem. And I am using ubuntu 9.10 which has gcc 4.4. On Wed, Feb 3, 2010 at 10:35 AM, Kenton Varda ken...@google.com

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
The .pb.h file compares the version of protoc that generated it against GOOGLE_PROTOBUF_MIN_PROTOC_VERSION, which is #defined in google/protobuf/stubs/common.h. We have never released a version in which this value was more than 2003000, which corresponds to protoc 2.3.0, so I can't imagine why

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread hap 497
Thank you Kenton. I am able to resolve my problem. I basically did a 'make clean', but install it in the default directory (/usr/local/). Things work afterward. Thank you again. On Wed, Feb 3, 2010 at 11:32 AM, Kenton Varda ken...@google.com wrote: The .pb.h file compares the version of