Comment #5 on issue 179 by Visual C++ error C1091 when compiling protoc generated code with over 64k descriptor

Hi guys,
To avoid this limitation you have to create descriptor string in heap.
Something like:
#include <sstream>

std::ostringstream oss;

oss << "myString1" << "myString2" << "myString3" << "myString4";

oss.str() would now return an instance of the STL's std:: string class, and oss.str().c_str() would return a const char*.

I have a patch to solve this issue in C++ protoc output.
Please find attached file.

Attachments:  21.1 KB

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