<div><br></div>Hi Suyang,<div><br></div><div>You are simply missing to link with the library</div><div><br></div><div>                      ITKStatistics</div><div><br></div><div><br></div><div>Please search for the</div><div>
<br></div><div>            TARGET_LINK_LIBRARIES </div><div><br></div><div>command in your CMakeLists.txt file and add</div><div>ITKStatistics to the list of libraries.</div><div><br></div><div><br></div><div>      Regards,</div>
<div><br></div><div><br></div><div>           Luis<br><br></div><div><br></div><div>--------------------------------------------------------------------<br><div class="gmail_quote">On Thu, Feb 11, 2010 at 6:59 PM, Suyang Mei <span dir="ltr">&lt;<a href="mailto:suyang_mei@yahoo.com">suyang_mei@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">Hi, all -<br><br>  I am using ITK 3.16 in vista with vs 2008, and I tried to compile the example codes <br>
itkLabelStatisticsImageFilterTest.cxx  under InsightToolkit-3.16.0\Testing\Code\BasicFilters, got the following errors -<br><br>  Any idea what is going on here?<br><br>  Thanks in advance for any help.<br><br>Suyang<br><br>
Error    2    error LNK2019: unresolved external symbol &quot;public: bool __thiscall itk::Statistics::DenseFrequencyContainer::IncreaseFrequency(unsigned long,float)&quot; (?IncreaseFrequency@DenseFrequencyContainer@Statistics@itk@@QAE_NKM@Z) referenced in function &quot;public: bool __thiscall itk::Statistics::Histogram&lt;double,1,class itk::Statistics::DenseFrequencyContainer&gt;::IncreaseFrequency(unsigned long const &amp;,float)&quot;
 (?IncreaseFrequency@?$Histogram@N$00VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QAE_NABKM@Z)    zzLabelStatisticsImageFilterTest.obj    <br><br>Error    3    error LNK2019: unresolved external symbol &quot;protected: __thiscall itk::Statistics::DenseFrequencyContainer::DenseFrequencyContainer(void)&quot; (??0DenseFrequencyContainer@Statistics@itk@@IAE@XZ) referenced in function &quot;public: static class itk::SmartPointer&lt;class itk::Statistics::DenseFrequencyContainer&gt; __cdecl itk::Statistics::DenseFrequencyContainer::New(void)&quot; (?New@DenseFrequencyContainer@Statistics@itk@@SA?AV?$SmartPointer@VDenseFrequencyContainer@Statistics@itk@@@3@XZ)    zzLabelStatisticsImageFilterTest.obj   <br>
<br>Error    4    error LNK2019: unresolved external symbol &quot;public: float __thiscall itk::Statistics::DenseFrequencyContainer::GetFrequency(unsigned
 long)const &quot; (?GetFrequency@DenseFrequencyContainer@Statistics@itk@@QBEMK@Z) referenced in function &quot;public: virtual float __thiscall itk::Statistics::Histogram&lt;double,1,class itk::Statistics::DenseFrequencyContainer&gt;::GetFrequency(unsigned long const &amp;)const &quot; (?GetFrequency@?$Histogram@N$00VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@UBEMABK@Z)    zzLabelStatisticsImageFilterTest.obj   <br>
<br><br>Error    5    error LNK2019: unresolved external symbol &quot;public: void __thiscall itk::Statistics::DenseFrequencyContainer::Initialize(unsigned long)&quot; (?Initialize@DenseFrequencyContainer@Statistics@itk@@QAEXK@Z) referenced in function &quot;public: void __thiscall itk::Statistics::Histogram&lt;double,1,class itk::Statistics::DenseFrequencyContainer&gt;::Initialize(class itk::Size&lt;1&gt; const &amp;)&quot;
 (?Initialize@?$Histogram@N$00VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QAEXABV?$Size@$00@3@@Z)    zzLabelStatisticsImageFilterTest.obj    <br><br>Error    6    error LNK2019: unresolved external symbol &quot;public: void __thiscall itk::Statistics::DenseFrequencyContainer::SetToZero(void)&quot; (?SetToZero@DenseFrequencyContainer@Statistics@itk@@QAEXXZ) referenced in function &quot;public: void __thiscall itk::Statistics::Histogram&lt;double,1,class itk::Statistics::DenseFrequencyContainer&gt;::SetToZero(void)&quot; (?SetToZero@?$Histogram@N$00VDenseFrequencyContainer@Statistics@itk@@@Statistics@itk@@QAEXXZ)    zzLabelStatisticsImageFilterTest.obj    <br>
<br><br><br><br></td></tr></tbody></table><br>



      <br>_____________________________________<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></blockquote></div><br></div>