Hi Alex,<br><br>It&#39;s OK now. I uninstalled the Vtk and reinstalled it. Now it works well. I don&#39;t know why, but it&#39;s working now.<br><br>Thank you very much.<br><br>Wenlong<br><br><div class="gmail_quote">2011/10/25 Alex Malyushytskyy <span dir="ltr">&lt;<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">As far as I understand this code is not meant to be compiled under windows<br>
I would check options set in CMake again.<br>
<div class="im"><br>
On Tue, Oct 25, 2011 at 5:22 AM, Wenlong Wang &lt;<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>&gt; wrote:<br>
</div><div><div></div><div class="h5">&gt; Dear all,<br>
&gt;<br>
&gt; I&#39;m setting up VTK5.8 in my Microsoft Vista. I would like to use it with my<br>
&gt; VS2008 compiler and C++.<br>
&gt;<br>
&gt; I&#39;ve installed VTK5.8 into my system and used CMake to configure it. I<br>
&gt; turned vtk_use_guisupport, build_examples and vtk_use_mfc on and left all<br>
&gt; other options as default.<br>
&gt;<br>
&gt; However, as I finished with CMake and tried to rebuild &quot;ALL_BUILD&quot; in<br>
&gt; VTK.sln, there was a failure happens in line 35 of &#39;error.c&#39; in &quot;D:\VTK<br>
&gt; 5.8.0\VTK\Utilities\vtknetcdf\<br>
&gt; error.c&quot;. The error message says &quot;error C2090: the function returns an<br>
&gt; array&quot;. And this error caused the failure of building vtkNetCDF.lib, then<br>
&gt; many failures happens because the .lib file doesn&#39;t exist.<br>
&gt;<br>
&gt; In line 35 of error.c in VTK5.8.0, the source code is,<br>
&gt;<br>
&gt; /* provide a strerror function for older unix systems */<br>
&gt; static char *<br>
&gt; strerror(int errnum)<br>
&gt; {<br>
&gt;     extern int sys_nerr;<br>
&gt;     extern char *sys_errlist[];           //The error happens here<br>
&gt;<br>
&gt;     if(errnum &lt; 0 || errnum &gt;= sys_nerr) return NULL;<br>
&gt;     /* else */<br>
&gt;   return (char *)(sys_errlist[errnum]);<br>
&gt; }<br>
&gt;<br>
&gt; I checked the corresponding file in VTK5.6 and the source codes are the<br>
&gt; same, but VTK5.6 runs well in my computer.<br>
&gt;<br>
&gt; I don&#39;t know what is wrong with it. Can anyone give me some suggestions? I<br>
&gt; will be really appreciate your kind help.<br>
&gt;<br>
&gt; Best wishes<br>
&gt; Long<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>