Status: New
Labels: Type-Defect Priority-Medium

New issue 437 by Messages with std::string do not serialize in 64 bit compilation

What steps will reproduce the problem?
1. Compile protobuf (C++) under visual studio for 64 bit target
2. Create a proto file with a message containing a string
3. Create a message and set the string attribute (Request.set_name("test")).
4. Try to serialize the message (Request.SerializeAsString)

What is the expected output? What do you see instead?
The message should serialize with no problems. However, an exception is thrown saying a BytesConsistencyError

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

Please provide any additional information below.

Example Message in Proto File

// Response
// This message contains constant settings stored in the service
message Temp_Message
   required string board_name = 1;

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to