Re: [xml] CYGWIN compile problems

What I wrote below is a total crap, of course.

I was checking the xmlversion.h, instead of It seems that
my platform lacks more stages than just the 'make install', such as
'configure'. has exactly the code you described, and it is wrong in my
opinion, for Cygwin (and everything else that doesn't use MS compiler) needs
the LIBXML_DLL_IMPORT macro to be empty in any case.

It seems it is about time for me to put some effort in generating *.h files
from * automatically as a part of the build process. This is the only
way to get rid of these problems in the future.


----- Original Message -----
From: "Igor Zlatkovic" <igor stud fh-frankfurt de>
To: "EXT-Bozeman, Charles H" <charles h bozeman Boeing com>; <xml gnome org>
Sent: Tuesday, January 15, 2002 8:16 PM
Subject: Re: [xml] CYGWIN compile problems


This is now these lines look like here:

#if defined(_MSC_VER) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
#define LIBXML_DLL_IMPORT __declspec(dllimport)

Now I am puzzled about where did you get that __CYGWIN__ from? The code I
have here does not mention it. I did a clean cvs checkout two days ago,
it be that this changed in the meantime?


----- Original Message -----
From: "EXT-Bozeman, Charles H" <charles h bozeman Boeing com>
To: <xml gnome org>
Sent: Tuesday, January 15, 2002 5:50 PM
Subject: [xml] CYGWIN compile problems

I cannot compile libxml2-2.4.13 from the sources unless I define
or LIBXML_STATIC. I am using cygwin which does not support dynamic
(at least mine doesn't); I thought you had to have MINGW for dynamic
libraries. I have tried:
./configure --disable-shared
but that had no effect. I traced the problem to line 200 in
#if (defined(_MSC_VER) || defined(__CYGWIN__)) && !defined(IN_LIBXML) &&
#define LIBXML_DLL_IMPORT __declspec(dllimport)

Maybe there is some other besides __CYGWIN__ that should force dynamic
compilation. Anyone have any ideas?

Charles Bozeman
(256) 961-2139

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