Menu

TinyXML shared lib

Developer
nitro
2006-01-15
2013-05-20
  • nitro

    nitro - 2006-01-15

    Hello,

    I have two suggestions:

    1) Ship prebuilt binaries (windows) with the tinyxml download or provide a seperate download for them

    2) Using the static lib or including the tinyxml.cpp does not always work. I have a Utils.dll which includes tinyxml. Unfortunately the tinyxml functions are not exported, instead I need to include the tinyxml library or .cpp file into every app that uses them. This kinda sucks.
    Another option is to provide a shared lib build of tinyxml (as a multithreaded .dll/.so, important is that there's a shared heap in the end when linked to an app) file. This would solve a lot of problems and make tinyxml very easy to use.

    What do you think about this?

    -Matthias

     
    • nitro

      nitro - 2006-01-15

      A little addendum: You could also do something like

      class TIXML_EXPORT TiXmlBase
      ...

      where TIXML_EXPORT is defined as __declspec(dllexport) or __declspec(dllimport) depending if you are currently compiling the shared lib or using it. Only for windows, under linux TIXML_EXPORT would be defined empty.

       
    • Lee Thomason

      Lee Thomason - 2006-01-15

      Matthias --

      I will never ship libraries for TinyXML. I appreciate that it would make it would be useful for some people, but it's more work for the TinyXML developers to build and test. And then people want mingw, linux, linux PPC, and other solutions...it becomes overwhelming quickly.

      The libs provided in the windows build are really exapmles. The intention of the library is to include the .h and .cpp files in your own project.

      lee

       

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.