philippepascal / protobuf-actionscript3

Automatically exported from code.google.com/p/protobuf-actionscript3
13 stars 8 forks source link

Error compiling this against protocol buffers 2.2 #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile this package against protocol-buffers 2.2
2. replace Makefile.am, main.cc and add the as3 directory
3. autogen.sh; configure; make

What is the expected output? What do you see instead?

Expected: compliation successful
Received:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_THREAD_SAFE -Wall
-Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -O2 -g -DNDEBUG -MT
as3_message.lo -MD -MP -MF .deps/as3_message.Tpo -c
google/protobuf/compiler/as3/as3_message.cc  -fno-common -DPIC -o
.libs/as3_message.o
google/protobuf/compiler/as3/as3_message.cc: In member function ‘void
google::protobuf::compiler::as3::MessageGenerator::Generate(google::protobuf::io
::Printer*)’:
google/protobuf/compiler/as3/as3_message.cc:239: warning: unused variable
‘is_own_file’
google/protobuf/compiler/as3/as3_message.cc: In member function ‘void
google::protobuf::compiler::as3::MessageGenerator::GenerateBuilderParsingMethods
(google::protobuf::io::Printer*)’:
google/protobuf/compiler/as3/as3_message.cc:657: error: no matching
function for call to ‘google::protobuf::internal::WireFormat::MakeTag(int,
google::protobuf::internal::WireFormatLite::WireType)’
./google/protobuf/wire_format.h:280: note: candidates are: static
google::protobuf::uint32
google::protobuf::internal::WireFormat::MakeTag(const
google::protobuf::FieldDescriptor*)

What version of the product are you using? On what operating system?

Max OS X

Please provide any additional information below.

Original issue reported on code.google.com by andy.tso on 3 Sep 2009 at 2:45

GoogleCodeExporter commented 9 years ago
The interface changed, need to change line 656:

   uint32 tag = WireFormat::MakeTag(field);

Original comment by andy.tso on 3 Sep 2009 at 8:35

GoogleCodeExporter commented 9 years ago
Fixed in 2.2.

Thanks a lot for the contribution!

Original comment by sorrydevil@gmail.com on 13 Oct 2009 at 12:06