[Insight-users] Read Write Program
Bradley Lowekamp
blowekamp at mail.nih.gov
Wed Nov 2 11:50:30 EDT 2011
Try changing:
TARGET_LINK_LIBRARIES( MyFirstIO ITKCommon )
to:
TARGET_LINK_LIBRARIES( MyFirstIO ${ITK_LIBRARIES} )
This should link your executable to all ITK libraries not just ITKCommon.
On Nov 2, 2011, at 11:39 AM, faba wrote:
> Thanks a lot Jon,
> I am also thinking this problem comes from linkers. I checked and saw that
> CMakeLists.txt contains the appropriate reference to the location of the ITK
> libraries. I have also attached my CMakeLists.txt and the results on CMake
> page. It would be great if you could take a look at them to find out what is
> the problem. I am really confused and whatever I change makes it worse!
> (the name of my project and my cpp file are MyFirstIO)
>
> - http://itk-insight-users.2283740.n2.nabble.com/file/n6955729/4.jpg
>
> - http://itk-insight-users.2283740.n2.nabble.com/file/n6955729/5.jpg
>
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Read-Write-Program-tp6955425p6955729.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
========================================================
Bradley Lowekamp
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine
blowekamp at mail.nih.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111102/e79ae574/attachment.htm>
More information about the Insight-users
mailing list