[Insight-users] crash with release build - not because of uninitialized variable?

John Drescher drescherjm at gmail.com
Wed Dec 14 09:53:43 EST 2011


On Wed, Dec 14, 2011 at 9:13 AM, Ryan Guan <ryan.guan at yahoo.com> wrote:
> Thank you. That seems to be the case (!!), both test executables loaded the
> debug DLL of ITK!!
>  and I realized that I did install ITK as I built 'ALL_BUILD'.
>
> Shall I disable BUILD_SHARED_LIBS and do a  re-build?
>

That would make live easier since it will then do static linking.


> Curiously, how does the application build know shall it link a static lib or
> a DLL? does it read the ITK's configuration flag?
>

When you have BUILD_SHARED_LIBS on ITK will create shared libraries
(dlls on windows) and your application will link to these.

> And to make sure, this will not affect the performance/speed of the code but
> only the size of the executable?
>
Yes.

John


More information about the Insight-users mailing list