[vtkusers] Question about adding new classes in vtk4.0

William A. Hoffman billlist at nycap.rr.com
Thu Jul 11 13:51:51 EDT 2002


This looks like a mix of ANSI streams and non-ansi streams.
If you set cmake to VTK_USE_ANSI_STDLIB true, then VTK will use
<iostream> and not <iostream.h>.   

So, if your code uses <iostream.h> you have to set VTK_USE_ANSI_STDLIB to false.
If your code uses <iostream> then you have to set VTK_USE_ANSI_STDLIB to true.
Or you could remove the includes of iostream from your code, and get it from VTK.

-Bill


At 05:32 PM 7/11/2002 +0000, Yuan Jin wrote:
>Hi all,
>
>when I use VC++ 6.0 to build my own classes in VTK4.0 after running CMake, it comes up the errors below when it compiles my class: (I just select ALL_BUILD project and build it in Win32 Release mode)
>
>D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios'
>D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : see declaration of 'ios'
>D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(51) : error C2061: syntax error : identifier 'seekdir'
>D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\strstream(54) : error C2039: 'openmode' : is not a member of 'ios'
>D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : see declaration of 'ios'
>.
>.
>.
>Could anybody tell me where the errors are?
>
>Thanks a lot
>
>_________________________________________________________________
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list