[Insight-developers] itk/vtk troubles

Bill Hoffman bill.hoffman@kitware.com
Thu, 21 Mar 2002 14:40:41 -0500


Recompile VTK, but turn VTK_USE_ANSI_STDLIB to ON, VTK by default
uses the old stream libraries which are incompatible with the new ones
that ITK uses.

-Bill


At 02:28 PM 3/21/2002 -0500, Damion Shelton wrote:
>Hi, I've got a weird bug. Including the following lines:
>
>#include <vtkImageImport.h>
>#include <itkVTKImageExport.h>
>
>confuses Visual C++:
>
>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios'
>       C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : see declaration of 'ios'
>
>However, reversing the order:
>
>#include <itkVTKImageExport.h>
>#include <vtkImageImport.h>
>
>works fine. Any ideas?
>
>-Damion-
>_______________________________________________
>Insight-developers mailing list
>Insight-developers@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-developers