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

David Doria daviddoria at gmail.com
Sun Nov 20 13:24:58 EST 2011


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


More information about the Insight-users mailing list