<div dir="ltr">Hi Panagiotis,<div><br></div><div>The message </div><div><br></div><div>   undefined reference to `itk::RTSTRUCTIO::RTSTRUCTIO()'</div><div><br></div><div>means the definition for the namespace itk, class RTSTRUCTIO, method RTSTRUCTIO has not been built into the executable.  Definitions are in found in .cxx files.  Please try changing</div>
<div><br></div><div>  ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx )</div><div><br></div><div>to</div><div><br></div><div>  ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx code_IO/itkRTSTRUCTIO.cxx code_IO/itkRTSTRUCTIOFactory.cxx )</div>
<div><br></div><div>(the definition of the given method is found in code_IO/itkRTSTRUCTIO.cxx).</div><div><br></div><div>Thanks,</div><div>Matt</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 12:22 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 Luis,<br>
<br>
I am using the following CMakeLists.txt file.<br>
<br>
<br>
<br>
#=========================================================<br>
#=========================================================<br>
# This project is designed to export the contours to RTSTRUCT.<br>
INCLUDE_DIRECTORIES("code_IO"<br>
"/research/SWExternal/GDCM/build/include/gdcm")<br>
PROJECT(Export2RTSTRUCT)<br>
<br>
# Find ITK Library<br>
FIND_PACKAGE(ITK)<br>
IF(ITK_FOUND)<br>
  INCLUDE(${ITK_USE_FILE})<br>
ELSE(ITK_FOUND)<br>
  MESSAGE(FATAL_ERROR<br>
          "Cannot build without ITK.  Please set ITK_DIR.")<br>
ENDIF(ITK_FOUND)<br>
<br>
ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx )<br>
<br>
TARGET_LINK_LIBRARIES(export2RTSTRUCT ${ITK_LIBRARIES})<br>
#=========================================================<br>
<br>
<br>
Panagiotis<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559p7584602.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559p7584602.html</a><br>

<div class="HOEnZb"><div class="h5">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>
</div></div></blockquote></div><br></div>