[ITK Community] [Insight-users] export2RTSTRUCT

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 13 09:30:48 EST 2013


Hi Panagiotis,

>From the message

                               undefined reference to
`itk::RTSTRUCTIO::RTSTRUCTIO()'

it looks like you are missing to link with a Library or missing to include
a .cxx in your CMakeLists.txt file.

Could you please share with the list your CMakeLists.txt file ?

    Thanks

         Luis



On Mon, Dec 9, 2013 at 1:09 PM, panos <korfiatisp at gmail.com> wrote:

> Hi all,
>
>
> I am trying to compile the export2RTSTRUCT code published at the
> Insight-journal <http://www.insight-journal.org/browse/publication/316>
>
> However I am getting the following error that I cannot explain:
>
> [100%] Building CXX object CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o
> Linking CXX executable export2RTSTRUCT
> CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o: In function
> `itk::RTSTRUCTIO::New()':
>
> export2RTSTRUCT.cxx:(.text._ZN3itk10RTSTRUCTIO3NewEv[itk::RTSTRUCTIO::New()]+0x42):
> undefined reference to `itk::RTSTRUCTIO::RTSTRUCTIO()'
> CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o: In function
> `itk::ObjectFactory<itk::RTSTRUCTIO>::Create()':
>
> export2RTSTRUCT.cxx:(.text._ZN3itk13ObjectFactoryINS_10RTSTRUCTIOEE6CreateEv[itk::ObjectFactory<itk::RTSTRUCTIO>::Create()]+0xf):
> undefined reference to `typeinfo for itk::RTSTRUCTIO'
>
> export2RTSTRUCT.cxx:(.text._ZN3itk13ObjectFactoryINS_10RTSTRUCTIOEE6CreateEv[itk::ObjectFactory<itk::RTSTRUCTIO>::Create()]+0x4e):
> undefined reference to `typeinfo for itk::RTSTRUCTIO'
> collect2: ld returned 1 exit status
> make[2]: *** [export2RTSTRUCT] Error 1
> make[1]: *** [CMakeFiles/export2RTSTRUCT.dir/all] Error 2
> make: *** [all] Error 2
>
> I am using cmake 2.8.9, ITK 4.3, my operating system is Scientific Linux
> 6.4
> and gcc compiler 4.4.7 20120313
>
> Thank you in advance
>
>
> Panagiotis Korfiatis
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559.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.php
>
> 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
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131213/f607a4fe/attachment.html>
-------------- next part --------------
_____________________________________
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.php

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


More information about the Community mailing list