Comment #5 on issue 179 by [email protected]: Visual C++ error C1091 when
compiling protoc generated code with over 64k descriptor
http://code.google.com/p/protobuf/issues/detail?id=179
Hi guys,
To avoid this limitation you have to create descriptor string in heap.
Something like:
{code}
#include <sstream>
std::ostringstream oss;
oss << "myString1" << "myString2" << "myString3" << "myString4";
{code}
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:
cpp_file.cc 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.