[Insight-users] question on cmake.txt

Stephen Yip stephen.fyip1 at gmail.com
Wed Mar 24 16:23:34 EDT 2010


Thanks! It may be a dumb question. I do not know any C++. How do you know
what libraries I need? say, I need 100 libraries. Do I need to add them all
to the TARGET_LINK_LIBRARIES? Thank you!

On Wed, Mar 24, 2010 at 3:18 PM, John Drescher <drescherjm at gmail.com> wrote:

> > Thanks for the prompt reply. I just built it again and got the following
> > errors. I wonder if you may know what they mean. Thanks!
> >
> > 1>------ Build started: Project: ImageRegistration1, Configuration: Debug
> > Win32 ------
> > 1>Linking...
> > 1>ImageRegistration1.obj : error LNK2019: unresolved external symbol
> > "public: virtual __thiscall itk::ImageIORegion::~ImageIORegion(void)"
> > (??1ImageIORegion at itk@@UAE at XZ) referenced in function
> > __unwindfunclet$??0?$ImageFileReader at V?$Image at M$01 at itk
> @@V?$DefaultConvertPixelTraits at M@2@@itk@@IAE at XZ$0
> > 1>ImageRegistration1.obj : error LNK2019: unresolved external symbol
> > "public: __thiscall itk::ImageIORegion::ImageIORegion(void)"
> > (??0ImageIORegion at itk@@QAE at XZ) referenced in function "protected:
> __thiscall
>
> You need to add
>
> ITKIO
>
> to your TARGET_LINK_LIBRARIES
>
> maybe more libraries. I did not look at every error.
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100324/53482aee/attachment.htm>


More information about the Insight-users mailing list