Menu

gnu visibility and msvc dllexport

mib
2008-01-22
2012-09-15
  • mib

    mib - 2008-01-22

    Hi,

    I'm new to it++ and start to use this library for a project.

    My first step was to compile it++ with msvc. Creating a static
    library was no problem. I wondered however if I could create a
    dll. This failed because the classes are not exported.

    In the same project I already create dll's and I found this link
    (http://gcc.gnu.org/wiki/Visibility) very useful. Because the
    semantics are similar it is possible to create a macro which
    exports (and imports) the public functions and classes under
    windows and under Linux it uses gcc's visibility attribute to
    create a much leaner shared library interface.

    My question is: Is it planned to implement such functionality.
    I think it would be great to have it in place.

    --
    Michael

     
    • Adam Piątyszek

      Adam Piątyszek - 2008-01-22

      Hi Michael,

      Your proposal is indeed quite a nice idea and it would be perfect if IT++ could be compiled as a dll library under MSVC++. The problem is that most of the active IT++ developers (unfortunately too few at the moment), either use IT++ on Linux platforms only or have no time to work on such a feature.

      But, since you are interested in creating a DLL library from IT++, it would be great if you could start working on this and share your results, experience, patches with us. If you feel on starting this topic, please open a new Feature Request ticket and describe some details there.

      BR,
      /Adam

       
      • mib

        mib - 2008-01-22

        Well, the first thing I'm going to do is actually use IT++.
        If I better understand how the library works and time permits :-0,
        I will work on this feature.

        --
        Michael

         

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.