[IGSTK-Users] Undefined reference to sth when compiling IGSTK

JX NIE njx937 at gmail.com
Fri Jan 11 04:44:52 EST 2013


hi
  I have got some problem when compiling IGSTK.
  When I tick the BULID_SHARED_LIBS and compile IGSTK in CodeBlocks(10.05),
  it may end in multiple "undefined reference to", as follow.

-------------- build: igstkTests in IGSTK ---------------

Using makefile: Makefile
Linking CXX shared library ..\..\bin\libSceneGraphVisualization.dll
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x232):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x260):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x310):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x336):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x35c):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetCommonAncestor() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3aa):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3bc):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3cf):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetCommonAncestor() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xc11):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xc5f):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xda8):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xe13):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xed4):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xf15):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xf31):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0xf9c):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1077):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetTransform() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1a97):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1b03):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1b1f):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1b8a):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1cc2):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1d11):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1d78):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1dd7):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1df3):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1e5e):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x1f86):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2383):
undefined reference to
`igstk::CoordinateSystemSetTransformResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2a3a):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetCommonAncestor() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2a4d):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetSource() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2a63):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetCommonAncestor() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2ac9):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetDestination() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x2adf):
undefined reference to
`igstk::CoordinateSystemTransformToResult::GetCommonAncestor() const'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3a8c):
undefined reference to `_imp___ZN3itk15ExceptionObjectC1Ev'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3aaa):
undefined reference to `_imp___ZN3itk15ExceptionObject14SetDescriptionEPKc'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3adc):
undefined reference to `_imp___ZN3itk15ExceptionObjectC1ERKS0_'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3ae1):
undefined reference to `_imp___ZN3itk15ExceptionObjectD1Ev'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraph.cxx.obj):igstkSceneGraph.cxx:(.text+0x3d49):
undefined reference to `_imp___ZN3itk15ExceptionObjectD1Ev'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x77):
undefined reference to `igstk::Transform::~Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0xcf):
undefined reference to `igstk::Transform::~Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x11f):
undefined reference to `igstk::Transform::~Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x175):
undefined reference to `igstk::Transform::Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x1f4):
undefined reference to `igstk::Transform::~Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x255):
undefined reference to `igstk::Transform::Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text+0x2d4):
undefined reference to `igstk::Transform::~Transform()'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text$_ZN5igstk14SceneGraphNode18SetParentTransformERKNS_9TransformE[igstk::SceneGraphNode::SetParentTransform(igstk::Transform
const&)]+0x19): undefined reference to
`igstk::Transform::operator!=(igstk::Transform const&)'
CMakeFiles\SceneGraphVisualization.dir/objects.a(igstkSceneGraphNode.cxx.obj):igstkSceneGraphNode.cxx:(.text$_ZN5igstk14SceneGraphNode18SetParentTransformERKNS_9TransformE[igstk::SceneGraphNode::SetParentTransform(igstk::Transform
const&)]+0x35): undefined reference to
`igstk::Transform::operator=(igstk::Transform const&)'
collect2: ld returned 1 exit status
mingw32-make.exe[3]: *** [bin/libSceneGraphVisualization.dll] Error 1
mingw32-make.exe[2]: ***
[Utilities/SceneGraphVisualization/CMakeFiles/SceneGraphVisualization.dir/all]
Error 2
mingw32-make.exe[1]: *** [Testing/CMakeFiles/igstkTests.dir/rule] Error 2
Creating library file: ..\..\bin\libSceneGraphVisualization.dll.a
mingw32-make.exe: *** [igstkTests] Error 2
过程结束,其状态为 2 (0 分钟, 3 秒)
48 个错误, 0 个警告
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20130111/6b1ff7dc/attachment.html>


More information about the IGSTK-Users mailing list