[xslt] problems with libxslt...




Hi,
I'm trying your library libxslt and libxml, but I have problems under Windows (both 2000 and XP) even with the standard tutorial by John Fleck. (under Linux it works!)

In that tutorial he uses the declaration:

extern int xmlLoadExtDtdDefaultValue;

but doing so, I get a warning:

warning C4273: 'xmlLoadExtDtdDefaultValue' : inconsistent dll linkage.

so I defined the macro LIBXML_THREAD_ENABLED, the warning disappeared but doing so, I can't use xmlLoadExtDtdDefaultValuein the code since I got a link error:

error LNK2001: unresolved external symbol ___xmlLoadExtDtdDefaultValue
fatal error LNK1120: 1 unresolved externals

so in the tutorial I have to comment the line that uses that variable.
Moreover, my real problem is that I can't save the result of the transformation of a file.
Infact, using the function:

xsltSaveResultToFile(stdout, res, cur);

results in a runtime error. Actually It seems that the problem comes from libxml when it flushes the buffer...
Can you help me?

Thank you.

-------------------------------------------------------
Alessandro Terenzi
IBM Rome Tivoli Lab
Via Sciangai, 53 - 00144 Rome - Italy
e-mail: a.terenzi@it.ibm.com
Tel:  +39-06-596-60660
Fax: +39-06-596-62077
Mobile: +39-333-8364028
-------------------------------------------------------


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