[IGSTK-Developers] Linking error related to IGSTK

Zein Salah zeinsalah at gmail.com
Mon Sep 10 16:07:53 EDT 2012


Dear all,

A project of mine is based on

IGSTK 4.4
VTK 5.2.1
Qt 4.8.2

under Windows 7, Cmake 2.8.9, Visual Studio 2008.

All toolkits built and compiled error-free, for both release and debug.

When compiled my own project, I got the error below:

1>------ Build started: Project: ArMicroscope, Configuration: Release
Win32 ------

1>Linking...

1>   Creating library D:\ArMicroscope-BIN\vs9\Release\ArMicroscope.lib
and object D:\ArMicroscope-BIN\vs9\Release\ArMicroscope.exp

1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of
other libs; use /NODEFAULTLIB:library

1>IGSTK.lib(igstkTracker.obj) : error LNK2019: unresolved external
symbol "public: static class igstk::SceneGraph * __cdecl
igstk::SceneGraph::getInstance(void)"
(?getInstance at SceneGraph@igstk@@SAPAV12 at XZ) referenced in function
"protected: __thiscall
igstk::SceneGraphObserver::SceneGraphObserver(void)"
(??0SceneGraphObserver at igstk@@IAE at XZ)

1>IGSTK.lib(igstkTrackerTool.obj) : error LNK2001: unresolved external
symbol "public: static class igstk::SceneGraph * __cdecl
igstk::SceneGraph::getInstance(void)"
(?getInstance at SceneGraph@igstk@@SAPAV12 at XZ)

1>IGSTK.lib(igstkTracker.obj) : error LNK2019: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::ShowTheTransformPath(class
igstk::CoordinateSystemTransformToEvent const *)"
(?ShowTheTransformPath at SceneGraph@igstk@@QAEXPBVCoordinateSystemTransformToEvent at 2@@Z)
referenced in function "public: virtual void __thiscall
igstk::SceneGraphObserver::Execute(class itk::Object const *,class
itk::EventObject const &)"
(?Execute at SceneGraphObserver@igstk@@UAEXPBVObject at itk@@ABVEventObject at 4@@Z)

1>IGSTK.lib(igstkTrackerTool.obj) : error LNK2001: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::ShowTheTransformPath(class
igstk::CoordinateSystemTransformToEvent const *)"
(?ShowTheTransformPath at SceneGraph@igstk@@QAEXPBVCoordinateSystemTransformToEvent at 2@@Z)

1>IGSTK.lib(igstkTracker.obj) : error LNK2019: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::DetachCoordinateSystem(class
igstk::CoordinateSystemSetTransformEvent const *)"
(?DetachCoordinateSystem at SceneGraph@igstk@@QAEXPBVCoordinateSystemSetTransformEvent at 2@@Z)
referenced in function "public: virtual void __thiscall
igstk::SceneGraphObserver::Execute(class itk::Object const *,class
itk::EventObject const &)"
(?Execute at SceneGraphObserver@igstk@@UAEXPBVObject at itk@@ABVEventObject at 4@@Z)

1>IGSTK.lib(igstkTrackerTool.obj) : error LNK2001: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::DetachCoordinateSystem(class
igstk::CoordinateSystemSetTransformEvent const *)"
(?DetachCoordinateSystem at SceneGraph@igstk@@QAEXPBVCoordinateSystemSetTransformEvent at 2@@Z)

1>IGSTK.lib(igstkTracker.obj) : error LNK2019: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::AddCoordinateSystem(class
igstk::CoordinateSystemSetTransformEvent const *)"
(?AddCoordinateSystem at SceneGraph@igstk@@QAEXPBVCoordinateSystemSetTransformEvent at 2@@Z)
referenced in function "public: virtual void __thiscall
igstk::SceneGraphObserver::Execute(class itk::Object const *,class
itk::EventObject const &)"
(?Execute at SceneGraphObserver@igstk@@UAEXPBVObject at itk@@ABVEventObject at 4@@Z)

1>IGSTK.lib(igstkTrackerTool.obj) : error LNK2001: unresolved external
symbol "public: void __thiscall
igstk::SceneGraph::AddCoordinateSystem(class
igstk::CoordinateSystemSetTransformEvent const *)"
(?AddCoordinateSystem at SceneGraph@igstk@@QAEXPBVCoordinateSystemSetTransformEvent at 2@@Z)

1>D:\ArMicroscope-BIN\vs9\Release\ArMicroscope.exe : fatal error
LNK1120: 4 unresolved externals

1>Build log was saved at
"file://d:\ArMicroscope-BIN\vs9\ArMicroscope.dir\Release\BuildLog.htm"

1>ArMicroscope - 9 error(s), 1 warning(s)

========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

What does this error mean? how to get around it?

Many thanks,

Zein



More information about the IGSTK-Developers mailing list