GCC 2.7.2 is nearly a decade old. It's highly unlikely that you could get it to compile protocol buffers without lots and lots of work. You'll need to use a newer compiler, such as GCC 3 or 4.
On Mon, Jan 18, 2010 at 11:11 AM, Jeff <jeff_...@appsig.com> wrote: > Trying to compile Protocol Buffers 2.2.0 on a Solaris 9 box. > It is failing when compiling the pre-compiler tool but the compile > error seems to be regarding the "stub" code found in "google/protobuf/ > stubs/". I just did the typical "configure" (except disablilng the 64 > bit option) and then "make" from the base directory. I do realize > this is an archaic system but thats what I'm stuck with. > > Here are the details: > > From "uname -a": > Sun OS 5.9 Generic_122300-15 sun4u sparc SUNW,Sun-Fire-V210 > > Both g++ and gcc are version 2.7.2 (in /usr/local) > > Configure String (note the disabling of 64 bit): > ./configure --prefix=/users/jmay/sdks --disable-64bit-solaris > > Compiler String: > g++ -DHAVE_CONFIG_H -I. -I.. -Wall -Wwrite-strings -Woverloaded- > virtual -Wno-sign-compare -O2 -g -DNDEBUG -c -o main.o > > Errors: > cc1plus: Invalid option '-Wno-sign-compare' > google/protobuf/stubs/common.h:143: parse error before ';' > google/protobuf/stubs/common.h:143: warning: ANSI C++ forbids > declaration 'int64' with no type or storage class > > It then continues to complain about numerous other 64 bit types > (uint64, kint64max, kint64min, kuint64max) > > Any ideas? Thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to proto...@googlegroups.com. > To unsubscribe from this group, send email to > protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > > > >--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.