Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium
New issue 690 by btkenn...@gmail.com: protoc can produce cpp code that
fails to compile due to naming clash on generated classes
https://code.google.com/p/protobuf/issues/detail?id=690
What steps will reproduce the problem?
1. download / build protobuf 2.6.1
2. cd to src dir, run protoc to generate cpp code for testcase.proto
(./protoc --cpp_out=. testcase.proto)
3. compile with g++ (g++ -I. -c testcase.pb.cc)
4. see errors due to naming clash
What is the expected output? What do you see instead?
I'd expect protoc to fail with a sensible error rather than having GCC
produce a large amount of relatively incomprehensible error messages.
What version of the product are you using? On what operating system?
Using protobuf-2.6.1 built on ubuntu 12.04 with gcc 4.6
Attachments:
testcase.proto 93 bytes
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups "Protocol
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.