Re: [xml] undefined reference to `_imp__xmlFree' error on mingw with msys for 2.6.5



Igor Zlatkovic wrote:

#if defined(_WIN32) && defined(__MINGW32__)
  #define XMLPUBFUN
  #ifdef __cplusplus
    #define XMLPUBVAR extern
  #else
    #define XMLPUBVAR
  #endif
  #if !defined _REENTRANT
    #define _REENTRANT
  #endif
#endif

Sorry, that was crap. Here is a better one:

/* Windows platform with GNU compiler (Mingw) */
#if defined(_WIN32) && defined(__MINGW32__)
  #undef XMLPUBVAR
  #ifdef __cplusplus
    #define XMLPUBVAR extern
  #else
    #define XMLPUBVAR
  #endif
  #if !defined _REENTRANT
    #define _REENTRANT
  #endif
#endif




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