<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hello David and Bill,</span></div><div><br><span></span></div><div><span>Thank you for your replies. <br></span></div><div><br><span></span></div><div><span>I tried the CMakeList that Bill said, which I think is similar to Cagatay's, and it didn't work. <br></span></div><div><span>And, I declared "SetThirdAdvectionFunction" in "</span>VavBoneSegmentationLevelSetImageFilter.h", while giving its implementation in the corresponding "VavBoneSegmentationLevelSetImageFilter.txx". I've done this kind of work before, and they worked quite well, but when I did it exactly the same manner again, it failed. <br></div><div><br></div><div>Regards,<br></div><div>Abayiz<br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size:
 12pt;"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> David Doria &lt;daviddoria@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Abayiz &lt;abayiz@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> itk &lt;insight-users@itk.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, November 20, 2011 8:24 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] Cmake Linking Object Error: undefined reference<br> </font> <br>
On Sun, Nov 20, 2011 at 1:20 PM, Abayiz &lt;<a ymailto="mailto:abayiz@yahoo.com" href="mailto:abayiz@yahoo.com">abayiz@yahoo.com</a>&gt; wrote:<br>&gt; Hello Cagatay,<br>&gt; Thank you very much for your answer.<br>&gt; I am using ITK4, so tried as you said, changing the link libraries line in<br>&gt; CMake. But it didn't work, still giving the same error.<br>&gt; And, I've defined "SetThirdAdvectionFunction" in<br>&gt; "VavBoneSegmentationLevelSetImageFilter.h" clearly, I am sure this is not<br>&gt; the error point.<br>&gt;<br>&gt; Are there any other suggestions?<br>&gt;<br>&gt; Thanks,<br>&gt; Abayiz<br><br>I suggest you make the smallest possible compilable example of your<br>problem so we can try to reproduce the error. I agree with Cagatay<br>that SetThirdAdvectionFunction is either not defined, or the file it<br>is defined in is not compiled. You said you defined it in<br>VavBoneSegmentationLevelSetImageFilter.h - are you sure
 the<br>implementation (definition) is there, and not just the declaration?<br><br>David<br><br><br> </div> </div>  </div></body></html>