[Insight-developers] Re: [Insight-users] Fixing bugs for ITK with MinGW

Ali - saveez at hotmail.com
Tue Sep 4 19:03:37 EDT 2007


> Hi Ali,

Hi Luis,

> Can you please try the solution and let us know if it works for you ?
> 
> 
> Index: itkDataObject.cxx
> ===================================================================
> RCS file: /cvsroot/Insight/Insight/Code/Common/itkDataObject.cxx,v
> retrieving revision 1.55
> diff -r1.55 itkDataObject.cxx
> 26c26
> < template class itk::SmartPointerForwardReference<itk::ProcessObject>;
> ---
>  > ITKCommon_EXPORT template class 
> itk::SmartPointerForwardReference<itk::ProcessObject>;
> 

Unfortunately, exporting the symbol did not work, I get this errors:



Building CXX object Code/Common/CMakeFiles/ITKCommon.dir/itkDataObject.obj

e:/dev/itk/InsightToolkit-CVS-src/Code/Common/itkDataObject.cxx:26: error: expected unqualified-id before "template"

e:/dev/itk/InsightToolkit-CVS-src/Code/Common/itkDataObject.cxx:26: error: expected `,' or `;' before "template"

make[2]: *** [Code/Common/CMakeFiles/ITKCommon.dir/itkDataObject.obj] Error 1

make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2

make: *** [all] Error 2

> 
>    If so, we will try it in the other platforms,
> 
> 
>      Thanks
> 
> 
>         Luis
> 
> 
> BTW, I can see this thread in the archives:
> http://www.itk.org/mailman/private/insight-developers/2007-September/thread.html#start


I see, I did not realise my post was forwarded to the developer list.

> 
> 
> --------------
> Ali - wrote:
> > 
> > 
> >  >
> >  > # The dash14 MinGW dashboard is actually built with BUILD_SHARED_LIBS 
> > set to
> >  > # OFF. (that is, static libraries are built on that dashboard)
> >  > #
> >  > # So any bugs related to shared libs should be irrelevant for this 
> > dashboard.
> >  > #
> >  > # If I can find some time this week, I will try to set up an identical
> >  > # dashboard on dash14 that does use BUILD_SHARED_LIBS.
> >  > #
> >  >
> >  > You are completely right, it is connected to BUILD_SHARED_LIBS. 
> > Without it
> >  > ITK compiles fine, however with it, it does not.
> >  >
> >  > I submitted a bug to mantis: http://www.itk.org/Bug/view.php?id=5647 
> > (It contains
> >  > some references to mailing list where the issue is discussed.)
> >  >
> >  > Ali: there is a known workaround:
> >  > http://www.itk.org/pipermail/insight-users/2007-June/022503.html
> >  >
> >  >
> >  > Regards,
> >  >
> >  > Tomash
> > 
> > 
> > Thanks for clarifying this Tomash. I wish this can be resolved in the 
> > official release as soon as possible, this problem has been around for 
> > ages while the solution is simple and it has been suggested many times. 
> > I don't understand why it does not get resolved quickly. This should 
> > encourage people to use mingw for itk instead of visual studio, I found 
> > it more efficient to compile itk with mingw.
> > 
> > PS Does anyone know why this thread is not reflected in the archive?
> > 

_________________________________________________________________
Feel like a local wherever you go.
http://www.backofmyhand.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20070905/a72ea8a1/attachment.html


More information about the Insight-developers mailing list