[Insight-users] Trouble Linking itk 2.8.1 Using MinGW

Mike Jackson mike.jackson at imts.us
Fri Dec 15 12:52:44 EST 2006


I am trying to build ITK and the build process is stopping due to the lots of link errors of the following:

CMakeFiles/myImageSeriesReadWrite.dir/ImageSeriesReadWrite.obj(.text$_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv
[itk::ImageFileWriter<itk::Image<unsigned char, 3u> >::Write()]+0xb78):ImageSeriesReadWrite.cxx: undefined reference to
`itk::SmartPointerForwardReference<itk::ProcessObject>::operator itk::ProcessObject*() const'

This is when I am trying to compile the Examples.

I am using MinGW under Windows XP.
CMake version 2.4.3
I cleaned out every previous install attempt and started clean and still get the same link errors. 

 Looking around the net doesn't really reveal any helpful hints except that I might have been mixing static and shared libs.. which is why I cleaned out all the directories that I could. 

 I am currently building ITK 2.8.1 as static libs and that seems to be working.. it is still building the examples BUT each example is linking.

Has anyone seen anything like this in the past?

Thanks
Mike Jackson



More information about the Insight-users mailing list