[Insight-users] Linking Error Please help me out to resolve it..
Bill Lorensen
bill.lorensen at gmail.com
Wed Mar 25 16:03:56 EDT 2009
TARGET_LINK_LIBRARIES(WatershedSegmentation2 ITKCommon)
should be
TARGET_LINK_LIBRARIES(WatershedSegmentation2 ITKIO ITKCommon)
The relwithdebinfo error means that you probably did not build itk
with relwithdebinfo or that cmake.
On Wed, Mar 25, 2009 at 2:54 AM, Rama Chandra Rao M
<mekaramu123 at gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: Rama Chandra Rao M <mekaramu123 at gmail.com>
> Date: Wed, Mar 25, 2009 at 3:22 PM
> Subject: Linking Error
> To: mekaramu123 at gmail.com
>
>
> Hi Luis/All,
>
> Thanks for your information,
>
> I have tried the steps with respect to WatershedSegmentation2.cxx file to
> build and execute
>
> But I got Linking Error when I build it.
>
> The following is my CMakeLists.txt file
>
> PROJECT(WatershedSegmentation2)
> FIND_PACKAGE(ITK)
> IF(ITK_FOUND)
> INCLUDE(${ITK_USE_FILE})
> ELSE(ITK_FOUND)
> MESSAGE(FATAL_ERROR
> "ITK not found. Please set ITK_DIR.")
> ENDIF(ITK_FOUND)
> ADD_EXECUTABLEWatershedSegmentation2 WatershedSegmentation2.cxx )
> TARGET_LINK_LIBRARIES(WatershedSegmentation2 ITKCommon)
>
> When i bild it using RelWithDebInfo I am getting the following error
>
> Fatalerror LNK1104:cannot open file 'ItkCommon.lib'
>
> When I build it using Debug option then the following errors
>
> error LNK 2001:unresolved symbol "protected:virtual void_thiscall
> itk::ImageIORegion::Printself...
>
> similar 8 unresolved symbol errors are occured.
>
> What may be my mistake how should i solve this.
> Please help
>
> with regards
>
> Rama
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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 Insight-users
mailing list