>>>>> "Tom" == Tom Tromey <tro...@redhat.com> writes:
HJ> You should add extern "C" for C++ on those functions moved to HJ> libiberty. Tom> Yeah, sorry about that. Tom> I'm testing the fix. Here is what I am checking in. Tom ChangeLog: 2012-04-27 Tom Tromey <tro...@redhat.com> * dwarf2.h: Wrap function declarations in extern "C". Index: dwarf2.h =================================================================== --- dwarf2.h (revision 186908) +++ dwarf2.h (working copy) @@ -361,6 +361,10 @@ #define DW_EH_PE_indirect 0x80 +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* Return the name of a DW_TAG_ constant, or NULL if the value is not recognized. */ extern const char *get_DW_TAG_name (unsigned int tag); @@ -385,4 +389,8 @@ recognized. */ extern const char *get_DW_CFA_name (unsigned int opc); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* _DWARF2_H */