[Insight-users] Problems with ImageToHistogramGenerator

Christian Marshall Rieck rieck at stud.ntnu.no
Tue Mar 13 12:10:06 EST 2007


Should anyone stumble upon this by google or otherwise, setting 
TARGET_LINK_LIBRARIES(<ProjectName> .. ITKStatistics)

in cmakelists does the trick.

Chr.

> I have a problem linking my program with a ImageToHistogramGenerator in 
> it. As far as i can tell it is a fairly straight copy the example in the 
> software guide, pg 686. (examples/statistics/ImageHistogram2.cxx)
> Does anybody have any hints?
> I have the header-file in my cmakelists.txt and have rerun cmake to update 
> my project settings. (i don't know if this is necessary, but I have 
> tried..) 
> 
> 
> The error reported is: Segmentation error LNK2019: unresolved external 
> symbol "protected: __thiscall 
> itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer(void)" 
> (??0DenseFrequencyContainer at Statistics@itk@@IAE at XZ) referenced in function 
> "public: static class itk::SmartPointer<class 
> itk::Statistics::DenseFrequencyContainer> __cdecl 
> itk::Statistics::DenseFrequencyContainer::New(void)" 
> (?New at DenseFrequencyContainer@Statistics at itk@@SA?AV?$SmartPointer at VDenseFrequencyContainer@Statistics at itk@@@3 at XZ)


More information about the Insight-users mailing list