[Insight-developers] Dynamic loaders and 2 separate versions

William A. Hoffman billlist at nycap.rr.com
Thu Sep 28 16:39:11 EDT 2006


At 12:58 PM 9/28/2006, Lorensen, William E (GE, Research) wrote:
>Hans,
>
>Although I have not looked in detail at this, removing itkDynamicLoader.cxx would break backward compatibility. However, we can stop using it inside itk and switch to the kwsys version internally.
>
>Bill
>
>-----Original Message-----
>From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
>[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
>Of Hans Johnson
>Sent: Thursday, September 28, 2006 10:26 AM
>To: ITK; William A. Hoffman
>Subject: [Insight-developers] Dynamic loaders and 2 separate versions
>
>
>Hello All,
>There are two files that deal with Dynamic loading of libraries that seem to
>be derived from the same basic premise:
>
>Utilities/kwsys/DynamicLoader.cxx Code/Common/itkDynamicLoader.cxx
>
>It seems that the kwsys version is more up-to date, and deals with some
>changes to the recent MacOSX OS that make it more unix compliant.
>
>I would recommend that the itkDynamicLoader.cxx file be reviewed, and
>removed if possible.  If there are really itk needed specializaations, then
>I would propose that the recent changes to the kwsys version be merged into
>the itkDynamicLoader.cxx version.
>
>I am willing to attempt this, but the world of shared library dynamic
>loading is beyond my comfort level ( I am very glad that the there are smart
>people on the ITK team to magically take care of this for me!).
>
>Please let me know if I can help, and what precautions should be taken in
>merging these two files.

I think we could sub-class the itk one from the kwsys one, and
add the backwards compatibility that way.

-Bill



More information about the Insight-developers mailing list