[Insight-developers] SNAP application link failure

Brad King brad.king at kitware.com
Thu, 22 Jan 2004 17:09:00 -0500 (EST)


On 22 Jan 2004, Kent Williams wrote:

> There seems to be a collision in linking the SNAP sample application,
> whereby it tries to pull in the PNG code from both VTK's libvtkpng.a and
> ITK's libitkpng.a.
>
> Apparently both versions of png.o get loaded at link, causing multiply
> defined symbol errors with GCC3 on Linux.
>
> I don't use this software, but I do try and compile all the applications
> once a week or so ;-)

This was fixed a couple weeks ago by mangling the names in ITK's version
of the library.  Run "make clean" in the Insight-build/Utilities directory
and then rebuild everything.

-Brad