<div>Hello,</div><div><br></div>The following code:<div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">typedef itk::Statistics::GaussianDistribution GausDist;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">GausDist::Pointer test = GausDist::New();</font></div>
<div><br></div><div>Makes the compilation to fail at link stage:</div><div>error LNK2019: unresolved external symbol "protected: __thiscall itk::Statistics::GaussianDistribution::GaussianDistribution(void)" (??0GaussianDistribution@Statistics@itk@@IAE@XZ) referenced in function "public: static class itk::SmartPointer<class itk::Statistics::GaussianDistribution> __cdecl itk::Statistics::GaussianDistribution::New(void)" (?New@GaussianDistribution@Statistics@itk@@SA?AV?$SmartPointer@VGaussianDistribution@Statistics@itk@@@3@XZ)</div>
<div><br></div><div>However, my executable is linking with:</div><div><br></div><div><div>ITKBasicFilters ITKAlgorithms ITKStatistics ITKNumerics ITKCommon ITKIO itkgdcm itkNetlibSlatec </div><div><br></div><div>in CMakeLists.txt</div>
<div><br></div><div><br></div><div>I'm using itk 3.20.0 and Visual studio 9</div></div><div><br></div><div>I'm running out of ideas by now and cannot make the code to compile correctly</div><div><br></div><div>Thanks in advance.</div>
<div><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com">www.alma3d.com</a><br>
</div></div>