[Insight-developers] itk/vtk troubles, update

Damion Shelton dmshelto@andrew.cmu.edu
Thu, 21 Mar 2002 14:45:10 -0500


Quick update,

Turns out that the compile error occurs whenever any VTK code (from 
includes) appears before before the line

#include <itkVTKImageExport.h>

I.e., this needs to be the first thing the program includes. On a related 
note, I now have a 4-view FLTK program working that visualizes an ITK 
pipeline with VTK (using the FLTK render window class mentioned earlier 
this week). If there's interest, I can put an example project in the 
repository (assuming there's not already something like this in there).

-Damion-

--On Thursday, March 21, 2002 2:28 PM -0500 Damion Shelton 
<dmshelto@andrew.cmu.edu> 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