<div dir="ltr">Hi Panagiotis,<div><br></div><div>From the message</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">                               undefined reference to `itk::RTSTRUCTIO::RTSTRUCTIO()</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">'</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">it looks like you are missing to link with a Library or missing to include a .cxx in your CMakeLists.txt file.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">Could you please share with the list your CMakeLists.txt file ?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">    Thanks</span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">         Luis</span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 1:09 PM, panos <span dir="ltr"><<a href="mailto:korfiatisp@gmail.com" target="_blank">korfiatisp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
<br>
I am trying to compile the export2RTSTRUCT code published at the<br>
Insight-journal <<a href="http://www.insight-journal.org/browse/publication/316" target="_blank">http://www.insight-journal.org/browse/publication/316</a>><br>
<br>
However I am getting the following error that I cannot explain:<br>
<br>
[100%] Building CXX object CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o<br>
Linking CXX executable export2RTSTRUCT<br>
CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o: In function<br>
`itk::RTSTRUCTIO::New()':<br>
export2RTSTRUCT.cxx:(.text._ZN3itk10RTSTRUCTIO3NewEv[itk::RTSTRUCTIO::New()]+0x42):<br>
undefined reference to `itk::RTSTRUCTIO::RTSTRUCTIO()'<br>
CMakeFiles/export2RTSTRUCT.dir/export2RTSTRUCT.o: In function<br>
`itk::ObjectFactory<itk::RTSTRUCTIO>::Create()':<br>
export2RTSTRUCT.cxx:(.text._ZN3itk13ObjectFactoryINS_10RTSTRUCTIOEE6CreateEv[itk::ObjectFactory<itk::RTSTRUCTIO>::Create()]+0xf):<br>
undefined reference to `typeinfo for itk::RTSTRUCTIO'<br>
export2RTSTRUCT.cxx:(.text._ZN3itk13ObjectFactoryINS_10RTSTRUCTIOEE6CreateEv[itk::ObjectFactory<itk::RTSTRUCTIO>::Create()]+0x4e):<br>
undefined reference to `typeinfo for itk::RTSTRUCTIO'<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [export2RTSTRUCT] Error 1<br>
make[1]: *** [CMakeFiles/export2RTSTRUCT.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
I am using cmake 2.8.9, ITK 4.3, my operating system is Scientific Linux 6.4<br>
and gcc compiler 4.4.7 20120313<br>
<br>
Thank you in advance<br>
<br>
<br>
Panagiotis Korfiatis<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
</blockquote></div><br></div>