[Insight-users] Problem with itk::Statistics::GaussianDistribution

Sergio Vera sergio.vera at alma3d.com
Tue Dec 21 10:26:40 EST 2010


Hello,

The following code:

typedef itk::Statistics::GaussianDistribution GausDist;
GausDist::Pointer test = GausDist::New();

Makes the compilation to fail at link stage:
error LNK2019: unresolved external symbol "protected: __thiscall
itk::Statistics::GaussianDistribution::GaussianDistribution(void)"
(??0GaussianDistribution at Statistics@itk@@IAE at XZ) referenced in function
"public: static class itk::SmartPointer<class
itk::Statistics::GaussianDistribution> __cdecl
itk::Statistics::GaussianDistribution::New(void)" (?New at GaussianDistribution
@Statistics at itk@@SA?AV?$SmartPointer at VGaussianDistribution@Statistics at itk
@@@3 at XZ)

However, my executable is linking with:

ITKBasicFilters ITKAlgorithms ITKStatistics ITKNumerics ITKCommon ITKIO
itkgdcm itkNetlibSlatec

in CMakeLists.txt


I'm using itk 3.20.0 and Visual studio 9

I'm running out of ideas by now and cannot make the code to compile
correctly

Thanks in advance.


-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101221/ad14d8d1/attachment.htm>


More information about the Insight-users mailing list