<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=ks_c_5601-1987">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi, guys:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is a problem what I've tackled for 3days but
failed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>As VTK doesn't have its namespace and IGSTK have
igstk namespace, VC6 and some Linux compilers report error to resolve
operator<< for vtkIndent. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>.NET2003 and some Linux compilers could compile it
well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>ostream& operator<<(ostream& os,
vtkIndent indent); <-- this function should be found during
compilation & linking.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I included "vtkIndent.h" and <iostream> and
tried to resolve namespace using ::, std::, function declaration and so
on.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>void VTKLoggerOutput::PrintSelf(StdOStreamType&
os, vtkIndent indent)<BR>{<BR> os << indent <<
"VTKLoggerOutput (" << this << ")\n";<BR>
Superclass::PrintSelf((ostream&)os, indent);<BR> indent =
indent.GetNextIndent();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if( this->Logger )<BR>
{<BR>// ::operator<<((ostream&)os ,
indent);
<--- This style makes the
code compiled but exception occurs during
runtime.<BR> os << indent << "Logger is available"
<< std::endl;<BR> }<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>This problem is also applied to igstk::View, View2D
and View3D because they're derived from a VTK class.</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Hee-Su</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT></BODY></HTML>