[vtkusers] (no subject)
zhangzhijun
zjzhang at ee.cuhk.edu.hk
Thu Jan 10 10:44:22 EST 2002
Dear all:
I have a program which was written with vtk32. and when the program compiles in window98,
with the library which compile with the use Ansi c++ checked, there will be this kind of error:
--------------------Configuration: regist - Win32 Debug--------------------
Compiling...
nonrigid2.cpp
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios'
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream'
.........
and when I compile the library with the ansi c++ unchecked, the code will be compiled ok,
but In an win2000 machine, both cases have this kind of errors,
is there solutions for this?
regards,
zhang zhijun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020110/915eb2a2/attachment.htm>
More information about the vtkusers
mailing list