Closed GoogleCodeExporter closed 8 years ago
Thank you for the bug-report. We will fix this error shortly.
If you want to make your code work, you have to do the following steps:
1. delete the method DisplayNameType_write_with_tag.
2. Instead of:
DisplayNameType_write_with_tag(&_message_hello_request->_DisplayNameType,
_buffer, offset, 4);
use
offset = write_raw_varint32((4<<3)+0, _buffer, offset);
offset = write_raw_varint32(_message_hello_request->_DisplayNameType, _buffer,
offset);
3. Instead of
offset = DisplayNameType_read_delimited_from(_buffer,
&_message_hello_request->_DisplayNameType, offset);
use
offset = read_raw_varint32(&tag, _buffer, offset);
_message_hello_request->_DisplayNameType = tag;
4. Change the struct into enum in the .h file:
struct DisplayNameType _DisplayNameType;
into
enum DisplayNameType _DisplayNameType;
With these changes your code should compile without errors or warnings and
encode/decode your messages.
Original comment by nvp...@gmail.com
on 16 Mar 2012 at 7:06
Issue 19 has been merged into this issue.
Original comment by nvp...@gmail.com
on 23 Jan 2013 at 8:30
Issue 14 has been merged into this issue.
Original comment by nvp...@gmail.com
on 23 Jan 2013 at 8:32
Fix is much more complicated than expected. Just declare the enums before the
messages and it will work just fine. We will consider this issue in a future
Milestone.
Original comment by nvp...@gmail.com
on 31 Jan 2013 at 1:47
Original issue reported on code.google.com by
jhmi...@uw.edu
on 5 Mar 2012 at 11:26