Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 406 by si...@nomis52.net: Generated code fails to compile on OpenBSD
http://code.google.com/p/protobuf/issues/detail?id=406

The platform is OpenBSD, with the following:
$ protoc --version
libprotoc 2.4.1

$ g++ --version
g++ (GCC) 4.2.1 20070719

The input file contains:

$ cat Test.proto
enum RegisterAction {
  REGISTER = 1;
  UNREGISTER = 2;
}

Running
$ protoc  --cpp_out ./ Test.proto
$ g++ -isystem /usr/local/include  -c Test.pb.cc  -o out.o

produces the errors below (see attached file for the entire output).

In file included from Test.pb.h:9,
                 from Test.pb.cc:4:
/usr/local/include/google/protobuf/stubs/common.h:305: error: template with C linkage /usr/local/include/google/protobuf/stubs/common.h:328: error: template with C linkage /usr/local/include/google/protobuf/stubs/common.h:368: error: template with C linkage

Attachments:
        error.log  77.6 KB

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to protobuf@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.

Reply via email to