I'm trying to compile a windows version of my game to distribute to the heathens and I don't have access to a windows box so I thought I would give cross-compilation a go. I'm using ubuntu atm so apt-getted the mingw32 package. This gives me a version of gcc et al with the suffix i586-mingw32msvc. I'm using autotools so ran ./configure --host=i586-mingw32msvc. Everything seems good until it gets to:
checking for GNU libc compatible realloc... no
Well, I thought i might be able to get away with it seems as i'm not using realloc etc so run make anyway.. but it turns out realloc is used by the stl so compiling fails. cstdlib is included by some stl headers which I include so I get the error:
/usr/lib/gcc/i586-mingw32msvc/3.4.2/include/c++/cstdlib:111: error: `::realloc' has not been declared
After googling for a while it turns out that other people have had similar problems but noone says how to fix it. I'm thinking there's either something wrong with the options I pass to configure (which i've tried various different combinitions for) or with the build environment itself.. So i was just wondering if anyone had any similar problem and managed to fix it or had any successes with cross-compiling from ubuntu/any other linux and has any suggestions of what to do.