I am having trouble trying to get gdb to print a message as a string. I have tried compiling the protobuf library examples in multiple ways to see if it works, but I have been unable to get it to work.
Whenever I try* p person.DebugString() *from the list_person.cc example*, *I get *Couldn't find method tutorial::Person::DebugString* Here are a few methods I tried, 1. Compiled the whole source on (gcc (Ubuntu 5.4.0-6ubuntu1~16.04.9) 5.4.0 20160609) using the cmake build system on a Ubuntu 16.04 2. Installed libprotobuf-dev on a Ubuntu 17.10, and compiled just the examples using (gcc (Ubuntu 7.2.0-8ubuntu3.2) 7.2.0). I did compile the examples using debug symbols as I can do gdb> *p person* Can anyone help figure out if this is a problem with gdb or I am doing something fundamentally wrong. I do remember that this working for me when I previously used protobuf with cygwin on a different windows box. Thank you... -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
