[Insight-developers] multiple shared ITK libraries on windows
Bill Hoffman
bill.hoffman at kitware.com
Mon Mar 21 13:26:58 EDT 2011
On 3/21/2011 12:44 PM, Bill Lorensen wrote:
> I have done nothing with wrapping and shared libs. I really don't know
> if you will have issues.
>
> I hope that I am close with the shared lib issue for the ITK proper.
> Once that is merged, we can look at the wrapping issues.
>
> Bill
It is possible that wrapping could have an issue. I agree it is too big
for one library. We know modified time is an issue, so we should fix
that first. The class with modified time has to be in a dll on windows
for wrapping or plugins to work. There maybe other globals in vnl or
other places in ITK that "could" cause problems. I guess the only way
to know is to have good test coverage and see what breaks.
Basically, each dll is just like an executable. It will fully resolve
all the symbols it needs including any global variables found in a
static library it is linking to.
It maybe worth some effort to add declspec(dllexport) stuff to vnl.
Looks like you can do it to template instances as well:
http://support.microsoft.com/kb/168958
With that done, we would be able to have all dll's and all would be
good! :)
For, now I think we just need to get the basic dll functionality back
into ITK.
-Bill
--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
More information about the Insight-developers
mailing list