[xml] xmlDoValidityCheckingDefaultValue problem



Hi, everyone:

I was using the binary release of libxml2.4.22 and recently updated to
2.5.7, posted at http://www.zlatkovic.com/projects/libxml/notes.html by igor
( Thanks for the great work, igor). The new 2.5.7 gives me an error during
linking, complaining about xmlDoValidityCheckingDefaultValue could not be
referred. By digging into the header file, I think the problem is related
with how that binary is built. Here is the piece related with this in
globals.h.  

#ifdef LIBXML_THREAD_ENABLED
#define xmlDoValidityCheckingDefaultValue \
(*(__xmlDoValidityCheckingDefaultValue()))
#else
LIBXML_DLL_IMPORT extern int xmlDoValidityCheckingDefaultValue;
#endif

My question is: for this specific problem, what is the simple fix here? do I
need set xmlDoValidityCheckingDefaultValue anymore with thread supported
version?
Or more generally, what's the catches when porting old code using
non-threaded linxml?

Thanks.

-- Gang Wang 



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