AlexanderSkvortsov / protobuf-embedded-c

Automatically exported from code.google.com/p/protobuf-embedded-c
0 stars 0 forks source link

C++ compatibility #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I've noticed using protobuf-embedded-c API into a .cpp file generates a link 
error. Adding the following blocks into the header file generated by protobuf 
solves this issue.

#ifdef __cplusplus
  extern "C" {
#endif
...
#ifdef _cplusplus
  }
#endif

This may be a good point to have this block generated automatically by protobuf.

Best regards,

Julien.

Original issue reported on code.google.com by Julien.P...@gmail.com on 15 Jan 2013 at 8:37

GoogleCodeExporter commented 9 years ago
Will fix this for the following Milestone 1.0M3

Original comment by nvp...@gmail.com on 23 Jan 2013 at 8:15

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r64.

Original comment by nvp...@gmail.com on 31 Jan 2013 at 8:00