<br><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Rama Chandra Rao M</b> <span dir="ltr">&lt;<a href="mailto:mekaramu123@gmail.com">mekaramu123@gmail.com</a>&gt;</span><br>
Date: Wed, Mar 25, 2009 at 3:22 PM<br>Subject: Linking Error<br>To: <a href="mailto:mekaramu123@gmail.com">mekaramu123@gmail.com</a><br><br><br>
<p>Hi Luis/All,</p>
<p>Thanks for your information,</p>
<p>I have tried the steps with respect to WatershedSegmentation2.cxx file to build and execute</p>
<p>But I got Linking Error when I build it.</p>
<p>The following is my CMakeLists.txt file</p>
<p>PROJECT(WatershedSegmentation2)<br>FIND_PACKAGE(ITK)<br>IF(ITK_FOUND)<br>INCLUDE(${ITK_USE_FILE})<br>ELSE(ITK_FOUND)<br>MESSAGE(FATAL_ERROR<br>&quot;ITK not found. Please set ITK_DIR.&quot;)<br>ENDIF(ITK_FOUND)<br>ADD_EXECUTABLEWatershedSegmentation2 WatershedSegmentation2.cxx )<br>
TARGET_LINK_LIBRARIES(WatershedSegmentation2 ITKCommon)</p>
<p>When i bild it using RelWithDebInfo I am getting the following error</p>
<p>Fatalerror LNK1104:cannot open file &#39;ItkCommon.lib&#39;</p>
<p>When I build it using Debug option then the following errors</p>
<p>error LNK 2001:unresolved symbol &quot;protected:virtual void_thiscall itk::ImageIORegion::Printself...</p>
<p><br>similar 8 unresolved symbol errors are occured. </p>
<p><br>What may be my mistake how should i solve this.<br>Please help</p>
<p><br>with regards</p>
<p>Rama</p></div><br>