C++ compatibility
Closed this issue · 2 comments
GoogleCodeExporter commented
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
Will fix this for the following Milestone 1.0M3
Original comment by nvp...@gmail.com
on 23 Jan 2013 at 8:15
- Changed state: Accepted
- Added labels: Milestone-1.0M3
GoogleCodeExporter commented
This issue was closed by revision r64.
Original comment by nvp...@gmail.com
on 31 Jan 2013 at 8:00
- Changed state: Fixed