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

Sergio Vera sergio.vera at alma3d.com
Tue Dec 21 11:17:20 EST 2010


Thanks David for the help.

The truth is that my CmakeLists.txt was not 100% correct, (they have grown a
lot by now and sometimes one can get lost on them) and the line that I was
modifying was the incorrect one :)

Sorry for the inconveniences!


On Tue, Dec 21, 2010 at 4:31 PM, David Doria <daviddoria at gmail.com> wrote:

> I'm not at a machine where I can verify this (hence the offlist
> email), but try linking to ITKReview. If it works you can reply to the
> list and let everyone know. If not, we'll wait for a better reply :)
>
> David
>
>
>
> On Tue, Dec 21, 2010 at 10:26 AM, Sergio Vera <sergio.vera at alma3d.com>
> wrote:
> > 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
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.html
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>



-- 
Sergio Vera

 Alma IT Systems
 C/ Vilana, 4B, 4º 1ª
 08022 Barcelona
 T. (+34) 932 380 592
 www.alma3d.com



-- 
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/09c2638d/attachment.htm>


More information about the Insight-users mailing list