Re: [xml] Re: Still problems when using libxml2 on mingw windows (includes patch)



Roland Schwingel a écrit :

When I am compiling with the definitions like in revision 1.10 it compiles all very well but when using it in some applications the xmlFree() function is not accessible it mostly points to invalid memory regions... The real cause
is hard to track down.

The behavior I had when the '-no-undefined' LDFLAG was absent was that I
couldn't link xmlint.exe, the linker complaining that __imp__xmlFree was
undefined. I don't know if it's related.

I also had a little problem with testSAX which was not compiling. It
seems not to know the timeb struct. Adding this at the top of the
testSAX.c solved it (patch attached) :

#ifdef HAVE_SYS_TIMEB_H
#include <sys/timeb.h>
#endif

Regards,

Christophe

--- ../../prog/gnome/gnome-xml/testSAX.c        2004-02-26 20:15:52.000000000 +0100
+++ testSAX.c   2004-02-27 17:01:04.000000000 +0100
@@ -8,6 +8,9 @@
 
 #include "libxml.h"
 
+#ifdef HAVE_SYS_TIMEB_H
+#include <sys/timeb.h>
+#endif
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif



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