Re: [xml] problem with MinGW and standard C headers



oliverst online de wrote:

#include "libxml/win32config.h"
#include <cstdio>

The problem is the #define of snprintf and vsnprintf in there for MinGW.
It's not available in the old style headers, but in the new ones.
Removing the two defines from "win32config.h" fixes the problem. I am
not sure how to properly fix it.

Try adding "using namespace std;" after your last #include.

If that does not work, try to specify win32config.h as C code.
For example:

  extern "C" {
  #include "libxml/win32config.h"
  }
  #include <cstdio>

If that does not work, try fiddling around with __cplusplus in
win32config.h.



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