Re: [xml] libxml2 and c++ bindings

On 9/3/07, Senthil Nathan <rsennat gmail com> wrote:
So, just thinking is it possible to link LIBXML2 C libraries with my C++
as we normally link c files with c++ using the preprocessor directive,
"__cplusplus" and defining as extern "C".

Yes, you can.  Without any problems.
BTW, libxml2 headers already have
    #ifdef __cplusplus
    extern "C" {
magic for you.

Andrew W. Nosenko <andrew w nosenko gmail com>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]