Re: [xml] xmlIO.obj : error LNK2019: unresolved external symbol
Yes, it works! You are really a nice guy to works with :-) Thank you very much! Specifically, add following lines before the "all:" target of Makefile.msvc: !if "$(WITH_LZMA)" == "1" XML_OBJS = $(XML_OBJS) $(XML_INTDIR)\xzlib.obj XML_OBJS_A = $(XML_OBJS_A) $(XML_INTDIR_A)\xzlib.obj XML_OBJS_A_DLL = $(XML_OBJS_A_DLL) $(XML_INTDIR_A_DLL)\xzlib.obj !endif On Sat, Nov 3, 2018 at 10:03 AM, Nick Wellnhofer wrote: > On 03/11/2018 01:02, Heng Zhou via xml wrote: > >> xmlIO.obj : error LNK2019: unresolved external symbol __libxml2_xzopen >> referenced in function xmlXzfileOpen_real >> > > Can you try the attached patch? Untested, but if lzma is enabled, we have > to compile and link xzlib.c as well. > > Nick > ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml
Re: [xml] xmlIO.obj : error LNK2019: unresolved external symbol
On 03/11/2018 01:02, Heng Zhou via xml wrote: xmlIO.obj : error LNK2019: unresolved external symbol __libxml2_xzopen referenced in function xmlXzfileOpen_real Can you try the attached patch? Untested, but if lzma is enabled, we have to compile and link xzlib.c as well. Nick diff --git a/win32/Makefile.msvc b/win32/Makefile.msvc index 491dc880..ee4250af 100644 --- a/win32/Makefile.msvc +++ b/win32/Makefile.msvc @@ -244,6 +244,12 @@ XML_OBJS_A_DLL = $(XML_INTDIR_A_DLL)\buf.obj\ $(XML_INTDIR_A_DLL)\xpointer.obj\ $(XML_INTDIR_A_DLL)\xmlstring.obj +!if "$(WITH_LZMA)" == "1" +XML_OBJS = $(XML_OBJS) $(XML_INTDIR)\xzlib.obj +XML_OBJS_A = $(XML_OBJS_A) $(XML_INTDIR_A)\xzlib.obj +XML_OBJS_A_DLL = $(XML_OBJS_A_DLL) $(XML_INTDIR_A_DLL)\xzlib.obj +!endif + # Xmllint and friends executables. UTILS = $(BINDIR)\xmllint.exe\ $(BINDIR)\xmlcatalog.exe\ ___ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org https://mail.gnome.org/mailman/listinfo/xml