Re: [xml] Handling MSVC exports (was Release of libxml2-2.4.21)

Hi there,

I do.  /Zg reports the static keyword, so those functions can be filtered

What is more important a flaw, it would not export variables. In the
default configuration, xmlFree is a pointer to a function and pointers
are variables.

Yes but all exported variables are already declared as LIBXML_DLL_IMPORT.
simple change to the definition of that to be __declspec(dllimport) when
building against libxml2, and __declspec(dllexport) when building libxml2
takes care of the variables.  No .def.src needed.

Ehemm... indeed! I wonder... am I the only one who sometimes seeks for a
solution, fails, and then feels dumb down to the iron when someone else
presents a simple one? Now, that you presented it, it sounds simple enough
so that I cannot escape the impression that I should have seen it myself
earlier :-) :-)

Mark, you have my respect and please receive my thanks. I'll check this
right away and I owe you a pint should we oneday happen to be in the same
town at the same time.


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