Comment #6 on issue 357 by error messages while compiling a c++ program that uses .proto file.

Thanks a lot for your help. I was trying out a very simple example in which I am trying to set and retrieve a variable in a message.
I get the following error.

$ g++ simpleprog.cpp
/tmp/cc7ulNxs.o: In function `main':
simpleprog.cpp:(.text+0x1d): undefined reference to `num::num()'
collect2: ld returned 1 exit status

I am attaching my files.
Maybe something is wrong with my c++ coding. I apologize for these clarifications that might seem basic. Can you please help me out.

        simpleprog.proto  44 bytes
        simpleprog.pb.h  4.3 KB  8.6 KB
        simpleprog.cpp  223 bytes

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