<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 <daviddoria@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Abayiz <abayiz@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> itk <insight-users@itk.org> <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 <<a ymailto="mailto:abayiz@yahoo.com" href="mailto:abayiz@yahoo.com">abayiz@yahoo.com</a>> wrote:<br>> Hello Cagatay,<br>> Thank you very much for your answer.<br>> I am using ITK4, so tried as you said, changing the link libraries line in<br>> CMake. But it didn't work, still giving the same error.<br>> And, I've defined "SetThirdAdvectionFunction" in<br>> "VavBoneSegmentationLevelSetImageFilter.h" clearly, I am sure this is not<br>> the error point.<br>><br>> Are there any other suggestions?<br>><br>> Thanks,<br>> 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>