Menu

Building in Windows

Jon W
2006-10-05
2013-04-24
  • Jon W

    Jon W - 2006-10-05

    Hey.  I had to get XMLRPC++ working in Windows, and I thought I'd chronicle how I finally got it working here.

    What didn't work:

    1.  Using either VS 2005 or 2003, double click the project file, convert and build.  All sorts of link and compile errors.  None of my coworkers nor I could fix them and get it working.

    2.  Build it in Cygwin.  That worked just fine, but it gave me a .a file instead of a .lib, which I needed.

    What finally worked:

    1.  MinGW and a modified Makefile.
    -For SYSTEMLIBS, put "-lws2_32" (without the quotes). This only matters for compiling the examples.
    -The "Validator" example doesn't build (or at least didn't for me - ambiguous overloaded operator), so find the line in "test/Makefile" that starts with "TESTS = " and remove "Validator"
    -It needs to know you're building for Windows, so add a line after the line starting with OPTIMIZE that contains the text: "DEFS = -D_WINDOWS", then add "$(DEFS)" to the end of the line starting with CXXFLAGS
    -change the line "LIB=./libXmlRpc.a" to "LIB=./libXmlRpc.lib"
    -Remove the text "-Wstrict-prototypes" from the GCCWARN line: it really doesn't apply on MinGW in Windows. Do the same for "test/Makefile".  It'll just clutter up the build output so you can't troubleshoot as easily.
    -in "test/Makefile", change the line "LIB= ../libXmlRpc.a" to "LIB=../libXmlRpc.lib"

    After that, it builds great!  If you have any questions for building in Windows, chances are I don't know the answers but feel free to ask!

     
    • naye

      naye - 2007-08-20

      I recently started building xmlrpc-cpp in Windows VS 6.0 with the object of creating a Regular DLL for use with GUI application. I maintained the C-files composition while changing the extensions to .cpp, added multiple include guards -- even modified some sections to accommodate the C++ nuances, and also made some cosmetic changes. Now, except for missing files, the available source files are compile error free. I would like to know how I can get the missing files which happen not be in the download that I have. The missing files are:

      #include <curl/curl.h>
      #include <curl/types.h>
      #include <curl/easy.h>
      #include <curl/multi.h>

      transport_config.h

      Does anybody know how I can these files in any download?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.