[Insight-developers] ITK Modularization transition pushed

Williams, Norman K norman-k-williams at uiowa.edu
Thu Mar 10 13:49:15 EST 2011


I don't totally understand what's up with this bug, except that this fixes
it:

diff --git a/ITK/Core/Common/src/itkDataObject.cxx
b/ITK/Core/Common/src/itkDataObject.cxx
index ff27890..ec125ab 100644
--- a/ITK/Core/Common/src/itkDataObject.cxx
+++ b/ITK/Core/Common/src/itkDataObject.cxx
@@ -30,7 +30,7 @@
 #include "itkRealTimeClock.h"

 // Manual instantiation is necessary to prevent link errors
-template class itk::SmartPointerForwardReference< itk::ProcessObject >;
+//template class itk::SmartPointerForwardReference< itk::ProcessObject >;

 namespace itk
 {


On 3/10/11 12:35 PM, "Williams, Norman K" <norman-k-williams at uiowa.edu>
wrote:


>Once I get things configuring properly I run into this error when building
>with BUILD_SHARED_LIB:BOOL=On
>
>Linking CXX shared library ../../../../lib/libITK-Common-4.0.dylib
>ld: duplicate symbol
>itk::SmartPointerForwardReference<itk::ProcessObject>::SmartPointerForward
>R
>eference()in CMakeFiles/ITK-Common.dir/itkDataObject.cxx.o and
>CMakeFiles/ITK-Common.dir/itkSmartPointerForwardReferenceProcessObject.cxx
>.
>o
>collect2: ld returned 1 exit status
>
>
>
>This is on OS X 10.6 with GCC 4.2 if that makes a difference.
>
>
>
>________________________________
>Notice: This UI Health Care e-mail (including attachments) is covered by
>the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is
>confidential and may be legally privileged.  If you are not the intended
>recipient, you are hereby notified that any retention, dissemination,
>distribution, or copying of this communication is strictly prohibited.
>Please reply to the sender that you have received the message in error,
>then delete it.  Thank you.
>________________________________
>_______________________________________________
>Powered by www.kitware.com
>
>Visit other Kitware open-source projects at
>http://www.kitware.com/opensource/opensource.html
>
>Kitware offers ITK Training Courses, for more information visit:
>http://kitware.com/products/protraining.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-developers



________________________________
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
________________________________


More information about the Insight-developers mailing list