[protobuf] Re: STL_HASH.m4

2010-01-21 Thread vikram
Hi, I tried to debug implementation which initializes kTypeNames. It seems like MakeTypeNameTable() function is not called which causes uninitialized kTypeNames. I tried to convert kTypeNames to static variable but still it didn't work.Then I made it global variable and modified this

[protobuf] Re: STL_HASH.m4

2010-01-19 Thread vikram
Thanks Kenton, I configured correctly using following configure string ./configure CC=/compiler/xlcpp/usr/vac/bin/xlc_r CXX=/compiler/ xlcpp/usr/vacpp/bin/xlC_r CXXFLAGS=-g -qlanglvl=extended - D__IBMCPP_TR1__ -qidirfirst -I/compiler/xlcpp/usr/vacpp/include CFLAGS=-g -qlanglvl=extc99

Re: [protobuf] Re: STL_HASH.m4

2010-01-19 Thread Kenton Varda
This sounds like another problem with your compiler -- it can't find std::string. Note that in common.h we use using namespace std; to import all of std into the google::protobuf namespace. This is not good practice but we didn't think it was worth the effort to fix it. On Tue, Jan 19, 2010 at

Re: [protobuf] Re: STL_HASH.m4

2010-01-19 Thread Kenton Varda
It just looks up the type name in a hash_map: http://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/parser.cc#1007 http://code.google.com/p/protobuf/source/browse/trunk/src/google/protobuf/compiler/parser.cc#1007kTypeNames is initialized here:

Re: [protobuf] Re: STL_HASH.m4

2010-01-19 Thread vikram patil
Thanks Kenton. I will try to debug it and will let you know. Did anyone successfully compiled protocol buffer on AIX ? I've seen couple of posts but never saw some reply with success. Thanks Regards, Vikram On Tue, Jan 19, 2010 at 7:56 PM, Kenton Varda ken...@google.com wrote: It just looks

Re: [protobuf] Re: STL_HASH.m4

2010-01-19 Thread Kenton Varda
I have no idea. On Tue, Jan 19, 2010 at 7:58 PM, vikram patil patilvik...@gmail.com wrote: Thanks Kenton. I will try to debug it and will let you know. Did anyone successfully compiled protocol buffer on AIX ? I've seen couple of posts but never saw some reply with success. Thanks