<div>Hi all,</div>
<div>&nbsp;</div>
<div>&nbsp; I am using vtk5.0 on vc++6.0. I tried to use Print method, but a problem appear when I compile.</div>
<div>---------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>D:\sur\surfacer.cpp(143) : error C2664: 'Print' : cannot convert parameter 1 from 'class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt;' to 'class ostream &amp;'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A reference that is not to 'const' cannot be bound to a non-lvalue
<br>Error executing cl.exe.<br>---------------------------------------------------------------------------------------------------------------------------------------------------</div>
<div>&nbsp;</div>
<div>This is my code&nbsp;of that line:</div>
<div>-------------------------------------------------------------------------------</div>
<div>&nbsp; normals-&gt;GetOutput()-&gt;Print(std::cout);<br>------------------------------------------------------------------------------</div>
<div>&nbsp;</div>
<div>I already include:&nbsp; </div>
<div>#include &lt;iostream.h&gt; </div>
<div>using namespace std;</div>
<div>&nbsp;</div>
<div>Why this happen? Could someone tell me? Any help is greatly appreciated. Thank you very much.</div>
<div>&nbsp;</div>
<div>Best,</div>
<div>Jia-Ming</div>
<div>&nbsp;</div>
<div><br><br><br>&nbsp;</div>