[vtkusers] VTK using deprecated features?
Brad King
brad.king at kitware.com
Wed Jun 23 22:15:33 EDT 2004
Paul Tait wrote:
> You can turn on ANSI streams as a CMake option
>
>
>
> ----- Original Message -----
> From: "Martin Magnusson" <martin.magnusson at aass.oru.se>
> To: <vtkusers at vtk.org>
> Sent: Wednesday, June 23, 2004 10:23 PM
> Subject: [vtkusers] VTK using deprecated features?
>
>
>
>>I'm new to VTK and am trying to install it, using gcc 3.3.1 and Cygwin.
>>
>>However, vtkIOStream.h makes references to <strstream> as well as
>>std::ostrstream and a few more classes which gcc tells me are deprecated.
>>
>>Can I simply comment these things out, or could that have some bad
>
> effects?
>
>>Thanks,
>>/ martin
VTK always uses ansi streams with GCC except for strstream. The problem
is that VTK still works with compilers that have strstream but not its
ansi replacement stringstream. VTK should be using -Wno-deprecated to
disable these warnings for GCC until a compatibility layer is added. If
it doesn't add this automatically, you can add it to your
CMAKE_CXX_FLAGS to disable the warnings.
-Brad
More information about the vtkusers
mailing list