[vtkusers] IO Pb with a msvc project
Vincent Daanen
vincent.daanen at imag.fr
Tue Nov 19 03:09:17 EST 2002
Hi boys,
I recently recompile vtk4.0 (because I change my computer) dans now, a
program that used to compile with my previous version of vtk does not
compile anymore ?
It seems that problems come from streams.
Below are the compiler errrors :
d:\programs\microsoft visual studio\vc98\include\strstream(51) : error
C2039: 'seekdir' : is not a member of 'ios'
d:\programs\microsoft visual studio\vc98\include\ios.h(106) :
see declaration of 'ios'
d:\programs\microsoft visual studio\vc98\include\strstream(51) : error
C2061: syntax error : identifier 'seekdir'
d:\programs\microsoft visual studio\vc98\include\strstream(54) : error
C2039: 'openmode' : is not a member of 'ios'
d:\programs\microsoft visual studio\vc98\include\ios.h(106) :
see declaration of 'ios'
d:\programs\microsoft visual studio\vc98\include\strstream(54) : error
C2061: syntax error : identifier 'openmode'
d:\programs\microsoft visual studio\vc98\include\strstream(91) : error
C2629: unexpected 'class std::ostrstream ('
d:\programs\microsoft visual studio\vc98\include\strstream(91) : error
C2238: unexpected token(s) preceding ';'
d:\programs\microsoft visual studio\vc98\include\strstream(109) : error
C2629: unexpected 'class std::strstream ('
d:\programs\microsoft visual studio\vc98\include\strstream(109) : error
C2238: unexpected token(s) preceding ';'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(69) : error C2874:
using-declaration causes a multiple declaration of 'cerr'
d:\programs\microsoft visual studio\vc98\include\iostream(19) :
see declaration of 'cerr'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(70) : error C2874:
using-declaration causes a multiple declaration of 'cout'
d:\programs\microsoft visual studio\vc98\include\iostream(18) :
see declaration of 'cout'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(71) : error C2874:
using-declaration causes a multiple declaration of 'cin'
d:\programs\microsoft visual studio\vc98\include\iostream(17) :
see declaration of 'cin'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(72) : error C2874:
using-declaration causes a multiple declaration of 'ios'
d:\programs\microsoft visual studio\vc98\include\iosfwd(254) :
see declaration of 'ios'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(75) : error C2874:
using-declaration causes a multiple declaration of 'ostream'
d:\programs\microsoft visual studio\vc98\include\iosfwd(257) :
see declaration of 'ostream'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(76) : error C2874:
using-declaration causes a multiple declaration of 'istream'
d:\programs\microsoft visual studio\vc98\include\iosfwd(256) :
see declaration of 'istream'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(79) : error C2874:
using-declaration causes a multiple declaration of 'ofstream'
d:\programs\microsoft visual studio\vc98\include\iosfwd(269) :
see declaration of 'ofstream'
d:\devtools\kitware\vtk4.0\common\vtksystemincludes.h(80) : error C2874:
using-declaration causes a multiple declaration of 'ifstream'
d:\programs\microsoft visual studio\vc98\include\iosfwd(268) :
see declaration of 'ifstream'
the cpp file includes :
#include <vtkPoints.h>
#include <vtkFloatArray.h>
#include <vtkUnstructuredGrid.h>
#include <vtkUnstructuredGridWriter.h>
#include <vtkCardinalSpline.h>
does anyome have any idea ?
Thanks
vince
--
Vincent Daanen,
Research Engineer- Post Doctoral Position
Laboratoire TIMC/IMAG Equipe GMCAO - Université Joseph Fourier - CNRS UMR 5525
Faculté de Médecine - Domaine de la Merci - 38706 La Tronche cedex - France
Tel: +33 (0)4 76 54 95 23
Vincent.Daanen at imag.fr
More information about the vtkusers
mailing list