Re: [xml] mingw, dll's, and globals.o



It was a matter of not having __declspec(dllexport) for the only
symbols that were having errors were the global DATA references.

If anyone's interested, I modified xmlwin32version.h:

#ifndef LIBXML_DLL_IMPORT
#if !defined(__MINGW32__) 
#if defined(_MSC_VER) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
#define LIBXML_DLL_IMPORT __declspec(dllimport)
#else
#define LIBXML_DLL_IMPORT
#endif
#endif
#endif

#ifndef LIBXML_DLL_IMPORT
#if defined(__MINGW32__) && !defined(IN_LIBXML) && !defined(LIBXML_STATIC)
#define LIBXML_DLL_IMPORT __declspec(dllimport)
#else
#ifdef DLL_EXPORT
#define LIBXML_DLL_IMPORT  __declspec(dllexport)
#else
#define LIBXML_DLL_IMPORT
#endif
#endif
#endif

Elizabeth



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