From: ajalkane <aja...@gm...> - 2008-10-24 13:02:27
|
Hi, the current release 0.54 doesn't quite compile without complications with MinGW. Here's what I did to get it to compile: in src/xmlrpc.c change the line that reads: #ifdef _MSC_VER // Visual C++ does not have gmtime_r, but its gmtime is threadsafe. ptm = gmtime(&value); into #ffdef _WIN32 Then after configuration (in MinGW I had to do explicitly tell where expat is found, ./configure --prefix=/mingw --with-expat=/mingw) to compile the samples, I had to tell that also iconv needs to be linked. I'm not knowledgeable enough with autoconf to know how to do this properly, I just modified src/libxmlrpc-epi.la:to have the line like this: # Libraries that this one depends upon. dependency_libs=' /mingw/lib/libexpat.la /mingw/lib/libiconv.la' That's it if I remember correctly. I'd hope the necessary changes are taken into xmlrpc-epi. |