Hi
I am trying to build a package, but build.go (version 1.6.3) fails with this message:
can't build package messages because it contains C++ files (xxx.pb.cc,yyy.pb.cc, [...etc.]) but it's not using cgo nor SWIG
The source files for the generated protobuf are xxx.proto, yyy.proto etc.
There is not much information on the web that seems to be useful.
The strange thing is that the same code compiles correctly when using a legacy protoc-gen-go executable. (I don't know where this version came from - it is part of a project I am new to. But probably from the code.google.com days.)
If someone could point me in a direction to solve this, I'd be grateful!
Thanks!
评论:
mkevac:
veryflatcat:Which package? Why do you have .cc files there? If you use --go_out=., then you will get .go files, not *.cc
styluss:The project currently has been generating C, Python and Go code in one directory. I wonder if that's not the issue...
I had this issue recently after installing a newer version over an old one. If that's the case, try deleting everything from the old version and after installing the new one it should stop.
