<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial>Hi ITKUsers and VTKusers,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT
face=Arial> I
need use ITK+VTK, so I build them both with the "use_ansi_stdlib" ON. However,
one of my programs which once worked fine with the VTK(the parameter
"use_ansi_lib" is Off) can not work. The compile error is:</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial size=2>C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition;
different basic types<BR>C:\Program Files\Microsoft Visual
Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial>I think the reason is that the conflict between the new IO
and the old IO, so I add the #undef VTK_USE_ANSI_STDLIB in my program, but the
compiler report the same error. If I build the VTK with the "use_ansi_lib" Off
and add the #define VTK_USE_ANSI_STDLIB in my programm, I think, I can resolve
this problem. However, I need use the VTK with the ITK, if I build the VTK with
'use_ansi_lib" Off, I have to build the ITK with the same configuration. I do
not want to do like this. Can I have other choices to resolve the conflict
between the old IO and the new IO?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thank you in advance!</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Best regards,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Yixun Liu</FONT></DIV></BODY></HTML>