I was installed protobuf using README.txt, in ubuntu 12.10. 
Compiler don't found Gzip... .h

I copied manually the google src in /usr/local/include/google/protobuf

Now, found the .h Library, but, if i execute: 
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/io/gzip_stream.h>

//using namespace std;
using namespace google::protobuf::io;

int main(int argc, char* argv[]) {
   int fd=1;   
   google::protobuf::io::FileOutputStream file_stream(fd);
   GZipOutputStream gzip_stream(&file_stream, GzipOutputStream::Options());

  return 0;

Not ambit for Gzip, if i add google::protobuf::io::

this is the output:
g++ -g -Wall -Wno-return-type -o main main.cpp -lprotobuf  -lpthread 
-I/usr/local/include -I/usr/local/include/google/protobuf -L/usr/local/lib 
-L/usr/lib/ correo.pb.o
main.cpp: En la función ‘int main(int, char**)’:
main.cpp:11:4: error: ‘GZipOutputStream’ no se declaró en este ámbito
main.cpp:11:21: error: expected ‘;’ before ‘gzip_stream’
make: *** [main] Error 1

I can not compile this "short-example". I  don't found the error.

thanks in advance

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To view this discussion on the web visit 
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to