[IGSTK-Users] Linker Errors..

Patrick Cheng cheng at isis.georgetown.edu
Fri Feb 18 10:35:06 EST 2011


Looks like you have created a new QTVIEW project.

Make sure you have these following line in your CMakeLists.txt

TARGET_LINK_LIBRARIES(QTVIEW IGSTK)

If you create your project outside of the IGSTK source tree, use the 
following script to find IGSTK library.

FIND_PACKAGE(IGSTK)
IF (IGSTK_USE_FILE)
   INCLUDE (${IGSTK_USE_FILE} )
ELSE (IGSTK_USE_FILE)
   MESSAGE( FATAL_ERROR "This application requires IGSTK. One of these 
components is missing. Please verify configuration")
ENDIF (IGSTK_USE_FILE)




On 2/18/2011 3:57 AM, Ashwath Hegde, ERS-HCLTech wrote:
> Hi All,
>
> I am trying to run the HelloWorld example given in Examples/HelloWorld.
> I am using QT for GUI.But I am getting the below error:
>
>
> 1>------ Build started: Project: QTVIEW, Configuration: Debug Win32 ------
> 1>Compiling...
> 1>moc_qtview.cpp
> 1>qtview.cpp
> 1>main.cpp
> 1>Generating Code...
> 1>Linking...
> 1>main.obj : error LNK2019: unresolved external symbol "protected: __thiscall igstk::MouseTracker::MouseTracker(void)" (??0MouseTracker at igstk@@IAE at XZ) referenced in function "public: static class itk::SmartPointer<class igstk::MouseTracker>  __cdecl igstk::MouseTracker::New(void)" (?New at MouseTracker@igstk@@SA?AV?$SmartPointer at VMouseTracker@igstk@@@itk@@XZ)
> 1>main.obj : error LNK2019: unresolved external symbol "protected: __thiscall igstk::MouseTrackerTool::MouseTrackerTool(void)" (??0MouseTrackerTool at igstk@@IAE at XZ) referenced in function "public: static class itk::SmartPointer<class igstk::MouseTrackerTool>  __cdecl igstk::MouseTrackerTool::New(void)" (?New at MouseTrackerTool@igstk@@SA?AV?$SmartPointer at VMouseTrackerTool@igstk@@@itk@@XZ)
> fatal error LNK1120: 2 unresolved externals
> 1>QTVIEW - 3 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> Can anybody please tell me what is the problem.
>
> Thanks and Regards,
> Ashwath.
>
> ::DISCLAIMER::
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users
>
>



More information about the IGSTK-Users mailing list