On 05/02/11 - 08:58:25AM, Andrew Beekhof wrote:
On Sun, May 1, 2011 at 7:01 AM, Russell Bryant russell@russellbryant.net wrote:
I don't have the cross compilation environment set up yet,
make PROFILE=fedora-rawhide-x86_64 mock-win
should work as of this weekend, just make sure you're getting mingw32-qpid-cpp >= 0.10.x
but it does build with and without HAVE_ASPRINTF defined. I also tested the asprintf() code in a test application to make sure it did what I thought it did.
Great. ACK
Instead of implementing your own asprintf(), I might suggest using gnulib[1]. It has portable replacements for many library functions (including asprintf), and has been used to fairly good success in libvirt for cross-compiling to Linux, MacOSX, and Windows.