At this moment if you want to link hubbub(and parserutils) library from C++ code it is necessary to wrap include directives with such construction

extern "C" {

#include <hubbub/hubbub.h>

}

This is not hard, but looks ugly.

It is almost a standard in C's world to add this to interface headers

#ifdef __cplusplus
extern "C" {
#endif

/*header body*/

#ifdef __cplusplus
}
#endif

I wrote simple utility placed in http://code.google.com/p/hotdox/source/browse/trunk/cpp_header_for_c/cpp_header_for_c.cpp . It insert such headers. It is not a ideal, but works great for hubbub's and parserutils's interface headers. If devs has no time for such transformation, I can do it by myself and ci to svn( if you give permission to me) or send a patch files.



Reply via email to