Re: [xml] undefined reference to `_imp__xmlFree' error on mingw with msys for 2.6.5
- From: "Mikhail S Grushinskiy" <mgrushinskiy comcast net>
- To: "Igor Zlatkovic" <igor zlatkovic com>
- Cc: <xml gnome org>
- Subject: Re: [xml] undefined reference to `_imp__xmlFree' error on mingw with msys for 2.6.5
- Date: Sun, 1 Feb 2004 21:04:59 -0500
The problem fixes if I remove defined(IN_LIBXML) condition in xmlexports.h
Not sure why it is needed, but without it everything compiles fine on mingw
with msys.
/* Windows platform with GNU compiler (Mingw) */
#if defined(_WIN32) && defined(__MINGW32__)
#undef XMLPUBFUN
#undef XMLPUBVAR
#undef XMLCALL
/*
#if defined(IN_LIBXML) && !defined(LIBXML_STATIC)
*/
#if !defined(LIBXML_STATIC)
#define XMLPUBFUN __declspec(dllexport)
#define XMLPUBVAR __declspec(dllexport) extern
#else
#define XMLPUBFUN
#if !defined(LIBXML_STATIC)
#define XMLPUBVAR __declspec(dllimport) extern
#else
#define XMLPUBVAR extern
#endif
#endif
#define XMLCALL __cdecl
#if !defined _REENTRANT
#define _REENTRANT
#endif
#endif
----- Original Message -----
From: "Igor Zlatkovic" <igor zlatkovic com>
To: <mgrushinskiy comcast net>
Cc: <xml gnome org>
Sent: Friday, January 30, 2004 10:36 AM
Subject: Re: [xml] undefined reference to `_imp__xmlFree' error on mingw
with msys for 2.6.5
mgrushinskiy comcast net wrote:
Hello,
I get
undefined reference to `_imp__xmlFree' error on mingw with msys for
2.6.5
for xmllint.
This is a regression from last version in 2.5.* branch (and even from
2.6.2)
Making all in .
make[2]: Entering directory `/home/mg/libxml2-2.6.5'
/bin/sh ./libtool --mode=link gcc -g -O2 -Wall -o xmllint.exe
xmllint.o ./libxml2.la -lws2_32
gcc -g -O2 -Wall -o xmllint.exe xmllint.o ./.libs/libxml2.a -lws2_32
xmllint.o: In function `xmlHTMLEncodeSend':
C:/msys/1.0/home/mg/libxml2-2.6.5/xmllint.c:318: undefined reference to
`_imp__xmlFree'
make[2]: *** [xmllint.exe] Error 1
make[2]: Leaving directory `/home/mg/libxml2-2.6.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mg/libxml2-2.6.5'
make: *** [all] Error 2
Just checked the current CVS with mingw without msys. Apart of gcc 3.2.3
being the slowest compiler I've ever seen, it works.
It seems that the stuff in include/libxml/xmlexports.h doesn't go well
when msys is involved. I don't know what to fix. It will take someone
with msys.
Ciao,
Igor
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]