<div class="gmail_quote"><br>Thanks David for the help.<div><br></div><div>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 :)</div>
<div><br></div><div>Sorry for the inconveniences!<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 4:31 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm not at a machine where I can verify this (hence the offlist<br>
email), but try linking to ITKReview. If it works you can reply to the<br>
list and let everyone know. If not, we'll wait for a better reply :)<br>
<br>
David<br>
<div><div></div><div><br>
<br>
<br>
On Tue, Dec 21, 2010 at 10:26 AM, Sergio Vera <<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>> wrote:<br>
> Hello,<br>
> The following code:<br>
> typedef itk::Statistics::GaussianDistribution GausDist;<br>
> GausDist::Pointer test = GausDist::New();<br>
> Makes the compilation to fail at link stage:<br>
> error LNK2019: unresolved external symbol "protected: __thiscall<br>
> itk::Statistics::GaussianDistribution::GaussianDistribution(void)"<br>
> (??0GaussianDistribution@Statistics@itk@@IAE@XZ) referenced in function<br>
> "public: static class itk::SmartPointer<class<br>
> itk::Statistics::GaussianDistribution> __cdecl<br>
> itk::Statistics::GaussianDistribution::New(void)"<br>
> (?New@GaussianDistribution@Statistics@itk@@SA?AV?$SmartPointer@VGaussianDistribution@Statistics@itk@@@3@XZ)<br>
> However, my executable is linking with:<br>
> ITKBasicFilters ITKAlgorithms ITKStatistics ITKNumerics ITKCommon ITKIO<br>
> itkgdcm itkNetlibSlatec<br>
> in CMakeLists.txt<br>
><br>
> I'm using itk 3.20.0 and Visual studio 9<br>
> I'm running out of ideas by now and cannot make the code to compile<br>
> correctly<br>
> Thanks in advance.<br>
><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" target="_blank">www.alma3d.com</a><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br><br clear="all"><br></div></div>-- <br><div class="im">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" target="_blank">www.alma3d.com</a><br>
</div></div>
</div><br><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>