No subject
Tue Nov 26 13:19:16 EST 2013
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
>
--047d7b339ba9e9f3c504ed6b4e29
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Hi Panagiotis,<div><br></div><div>From the message</div><d=
iv><br></div><div><span style=3D"font-family:arial,sans-serif;font-size:12.=
800000190734863px">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0undefined reference =
to `itk::RTSTRUCTIO::RTSTRUCTIO()</span><span style=3D"font-family:arial,sa=
ns-serif;font-size:12.800000190734863px">'</span><br>
</div><div><span style=3D"font-family:arial,sans-serif;font-size:12.8000001=
90734863px"><br></span></div><div><span style=3D"font-family:arial,sans-ser=
if;font-size:12.800000190734863px">it looks like you are missing to link wi=
th a Library or missing to include a .cxx in your CMakeLists.txt file.</spa=
n></div>
<div><span style=3D"font-family:arial,sans-serif;font-size:12.8000001907348=
63px"><br></span></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:12.800000190734863px">Could you please share with the list your CMak=
eLists.txt file ?</span></div>
<div><span style=3D"font-family:arial,sans-serif;font-size:12.8000001907348=
63px"><br></span></div><div><span style=3D"font-family:arial,sans-serif;fon=
t-size:12.800000190734863px">=C2=A0 =C2=A0 Thanks</span></div><div><span st=
yle=3D"font-family:arial,sans-serif;font-size:12.800000190734863px"><br>
</span></div><div><span style=3D"font-family:arial,sans-serif;font-size:12.=
800000190734863px">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Luis</span></div><div>=
<span style=3D"font-family:arial,sans-serif;font-size:12.800000190734863px"=
><br></span></div></div><div class=3D"gmail_extra">
<br><br><div class=3D"gmail_quote">On Mon, Dec 9, 2013 at 1:09 PM, panos <s=
pan dir=3D"ltr"><<a href=3D"mailto:korfiatisp at gmail.com" target=3D"_blan=
k">korfiatisp at gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"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=3D"http://www.insight-journal.org/browse/public=
ation/316" target=3D"_blank">http://www.insight-journal.org/browse/publicat=
ion/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_10RTSTRUCTIOEE6CreateE=
v[itk::ObjectFactory<itk::RTSTRUCTIO>::Create()]+0xf):<br>
undefined reference to `typeinfo for itk::RTSTRUCTIO'<br>
export2RTSTRUCT.cxx:(.text._ZN3itk13ObjectFactoryINS_10RTSTRUCTIOEE6CreateE=
v[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=3D"http://itk-insight-users.2283740.n=
2.nabble.com/export2RTSTRUCT-tp7584559.html" target=3D"_blank">http://itk-i=
nsight-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=3D"http://www.kitware.com" target=3D"_blank">www.kitware=
.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href=3D"http://www.kitware.com/opensource/opensource.html" target=3D"_bl=
ank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href=3D"http://www.kitware.com/products/protraining.php" target=3D"_blan=
k">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href=3D"http://www.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://www.it=
k.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=3D"_bl=
ank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
_______________________________________________<br>
Community mailing list<br>
<a href=3D"mailto:Community at itk.org">Community at itk.org</a><br>
<a href=3D"http://public.kitware.com/cgi-bin/mailman/listinfo/community" ta=
rget=3D"_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/communit=
y</a><br>
</blockquote></div><br></div>
--047d7b339ba9e9f3c504ed6b4e29--
More information about the Insight-users
mailing list