[ITK Community] [Insight-users] export2RTSTRUCT
Matt McCormick
matt.mccormick at kitware.com
Fri Dec 13 15:51:14 EST 2013
Hi Panagiotis,
The message
undefined reference to `itk::RTSTRUCTIO::RTSTRUCTIO()'
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
ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx )
to
ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx
code_IO/itkRTSTRUCTIO.cxx code_IO/itkRTSTRUCTIOFactory.cxx )
(the definition of the given method is found in code_IO/itkRTSTRUCTIO.cxx).
Thanks,
Matt
On Fri, Dec 13, 2013 at 12:22 PM, panos <korfiatisp at gmail.com> wrote:
> Hi Luis,
>
> I am using the following CMakeLists.txt file.
>
>
>
> #=========================================================
> #=========================================================
> # This project is designed to export the contours to RTSTRUCT.
> INCLUDE_DIRECTORIES("code_IO"
> "/research/SWExternal/GDCM/build/include/gdcm")
> PROJECT(Export2RTSTRUCT)
>
> # Find ITK Library
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
> INCLUDE(${ITK_USE_FILE})
> ELSE(ITK_FOUND)
> MESSAGE(FATAL_ERROR
> "Cannot build without ITK. Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
>
> ADD_EXECUTABLE(export2RTSTRUCT export2RTSTRUCT.cxx )
>
> TARGET_LINK_LIBRARIES(export2RTSTRUCT ${ITK_LIBRARIES})
> #=========================================================
>
>
> Panagiotis
>
>
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/export2RTSTRUCT-tp7584559p7584602.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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131213/5466f155/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