I'm running MSYS2 environment for the PC - running mingw64, trying to build 64-bit binaries.
I'm trying to link to the xerces-c library (which I have downloaded and installed using pacman). Unfortunately I get unresolved link errors. It seems that the library (xerces-c) was built with size_t=unsigned long long, while what I am compiling has size_t=unsigned long - so the mangled C++ names are different - even though an unsigned long is the same as an unsigned long long in my C++ environment. Not a problem - I can patch the header files to use unsigned long long.
Unfortunately one of the objects in xerces-c overrides the new operator with their own method - the new operator implicitly calls new with size_t = unsigned long in my code. Patching the header doesn't fix this. Is there anyway around this without having to re-build xerces-c? Am I missing something?