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++
> programs,
> 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" {
   #endif
magic for you.
 
Thanks. Just checked the headers.
 

 


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