[Rtk-users] RTK helloworld

Padraig Looney padraig.looney at gmail.com
Mon Sep 8 14:43:27 CEST 2014


Dear all,

I am trying to get the HelloWorld example running but I get a large number
of errors after the build. I am using ITK-4.6 and have followed the
instructions as per

http://wiki.openrtk.org/index.php/RTK_wiki_help#Tutorial_0_-_Building_an_HelloWorld_application_with_RTK

My executable is built and is working but I have hundreds of errors. The
first few are.

CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
`itk::MemoryAllocationError::MemoryAllocationError(std::string const&,
unsigned int, std::string const&, std::string const&)':
main.cpp:(.text._ZN3itk21MemoryAllocationErrorC2ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC5ERKSsjS2_S2_]+0x35):
undefined reference to `itk::ExceptionObject::ExceptionObject(std::string
const&, unsigned int, std::string const&, std::string const&)'
main.cpp:(.text._ZN3itk21MemoryAllocationErrorC2ERKSsjS2_S2_[_ZN3itk21MemoryAllocationErrorC5ERKSsjS2_S2_]+0x40):
undefined reference to `vtable for itk::MemoryAllocationError'
CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
`itk::Object::SetObjectName(std::string)':
main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x25):
undefined reference to `itk::Object::GetDebug() const'
main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x2e):
undefined reference to `itk::Object::GetGlobalWarningDisplay()'
main.cpp:(.text._ZN3itk6Object13SetObjectNameESs[_ZN3itk6Object13SetObjectNameESs]+0x12e):
undefined reference to `itk::OutputWindowDisplayDebugText(char const*)'
CMakeFiles/HelloWorld1.dir/main.cpp.o: In function
`itk::DataObject::SetRealTimeStamp(itk::RealTimeStamp)':
main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x25):
undefined reference to `itk::Object::GetDebug() const'
main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x2e):
undefined reference to `itk::Object::GetGlobalWarningDisplay()'
main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0xf1):
undefined reference to `itk::operator<<(std::ostream&, itk::RealTimeStamp
const&)'
main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x12e):
undefined reference to `itk::OutputWindowDisplayDebugText(char const*)'
main.cpp:(.text._ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE[_ZN3itk10DataObject16SetRealTimeStampENS_13RealTimeStampE]+0x169):
undefined reference to `itk::RealTimeStamp::operator!=(itk::RealTimeStamp
const&) const'


Thanks
Pádraig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20140908/e6e3f753/attachment.htm>


More information about the Rtk-users mailing list