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

David Doria daviddoria at gmail.com
Mon Nov 21 09:34:33 EST 2011


On Mon, Nov 21, 2011 at 2:47 AM, Abayiz <abayiz at yahoo.com> wrote:
> 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

Ah, I didn't know it was a function template. My new guess is that you
did not explicitly instantiate the function. Did you #include the .txx
file from the .h file? How are you calling the function? Again, if you
provide the shortest example possible it is much easier to help you.

David


More information about the Insight-users mailing list