[Insight-users] Cmake Linking Object Error: undefined reference

Abayiz abayiz at yahoo.com
Mon Nov 21 02:47:14 EST 2011


Hello David and Bill,

Thank you for your replies. 


I tried the CMakeList that Bill said, which I think is similar to Cagatay's, and it didn't work. 

And, I declared "SetThirdAdvectionFunction" in "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. 


Regards,

Abayiz


________________________________
 From: David Doria <daviddoria at gmail.com>
To: Abayiz <abayiz at yahoo.com> 
Cc: itk <insight-users at itk.org> 
Sent: Sunday, November 20, 2011 8:24 PM
Subject: Re: [Insight-users] Cmake Linking Object Error: undefined reference
 
On Sun, Nov 20, 2011 at 1:20 PM, Abayiz <abayiz at yahoo.com> wrote:
> Hello Cagatay,
> Thank you very much for your answer.
> I am using ITK4, so tried as you said, changing the link libraries line in
> CMake. But it didn't work, still giving the same error.
> And, I've defined "SetThirdAdvectionFunction" in
> "VavBoneSegmentationLevelSetImageFilter.h" clearly, I am sure this is not
> the error point.
>
> Are there any other suggestions?
>
> Thanks,
> Abayiz

I suggest you make the smallest possible compilable example of your
problem so we can try to reproduce the error. I agree with Cagatay
that SetThirdAdvectionFunction is either not defined, or the file it
is defined in is not compiled. You said you defined it in
VavBoneSegmentationLevelSetImageFilter.h - are you sure the
implementation (definition) is there, and not just the declaration?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111120/febf5afe/attachment.htm>


More information about the Insight-users mailing list