Re: [xml] libxml linking using rpms

Date view Thread view Subject view Author view

From: Steve Webster (swebster@rayva.org)
Date: Fri Dec 17 1999 - 17:09:28 EST


Daniel,

I have upgraded to libxml 1.8, and I have the following recommendations:

1) Enclose your HTMLparser.h declarations with the usual c++/c defines.
This omission was the source of my problems, since I'm writing c++ code.

#ifdef __cplusplus
#define extern "C" {
#endif

...

#ifdef __cplusplus
}
#endif

2) Change your variable name, "namespace," to something like "nspace" at
SAX.h:96 and tree.h:468 since "namespace" is reserved in c++.

These two changes allowed me to build my c++ applications successfully.

HTH,
Steve

Daniel Veillard wrote:
>
> On Sat, Dec 11, 1999 at 10:57:17AM -0500, Steve Webster wrote:
> > Thanks for your rapid response. The rpms I'm using came from the url you
> > mention, ftp://rpmfind.net/pub/veillard/. Here's my output, as you
> > requested, which looks identical to your sample. Consquently, my issue
> > looks be related to my environment, beyond libxml.If you think
> > differently, please let me know.
>
> Strange, I double checked and was able to link the HTML tester example
> with the 1.7.4 shared library without problem (running Ok too !).
> Make sure that there is no libxml libs wandering around say in /usr/local/lib
> or in another critical path, make sure that /sbin/ldconfig -v reports
> libxml only in /usr/lib and with the correct versions,
>
> Daniel

----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Aug 02 2000 - 12:29:55 EDT