Hi Alex,<br><br>It's OK now. I uninstalled the Vtk and reinstalled it. Now it works well. I don't know why, but it'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"><<a href="mailto:alexmalvtk@gmail.com">alexmalvtk@gmail.com</a>></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 <<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>> wrote:<br>
</div><div><div></div><div class="h5">> Dear all,<br>
><br>
> I'm setting up VTK5.8 in my Microsoft Vista. I would like to use it with my<br>
> VS2008 compiler and C++.<br>
><br>
> I've installed VTK5.8 into my system and used CMake to configure it. I<br>
> turned vtk_use_guisupport, build_examples and vtk_use_mfc on and left all<br>
> other options as default.<br>
><br>
> However, as I finished with CMake and tried to rebuild "ALL_BUILD" in<br>
> VTK.sln, there was a failure happens in line 35 of 'error.c' in "D:\VTK<br>
> 5.8.0\VTK\Utilities\vtknetcdf\<br>
> error.c". The error message says "error C2090: the function returns an<br>
> array". And this error caused the failure of building vtkNetCDF.lib, then<br>
> many failures happens because the .lib file doesn't exist.<br>
><br>
> In line 35 of error.c in VTK5.8.0, the source code is,<br>
><br>
> /* provide a strerror function for older unix systems */<br>
> static char *<br>
> strerror(int errnum)<br>
> {<br>
> extern int sys_nerr;<br>
> extern char *sys_errlist[]; //The error happens here<br>
><br>
> if(errnum < 0 || errnum >= sys_nerr) return NULL;<br>
> /* else */<br>
> return (char *)(sys_errlist[errnum]);<br>
> }<br>
><br>
> I checked the corresponding file in VTK5.6 and the source codes are the<br>
> same, but VTK5.6 runs well in my computer.<br>
><br>
> I don't know what is wrong with it. Can anyone give me some suggestions? I<br>
> will be really appreciate your kind help.<br>
><br>
> Best wishes<br>
> Long<br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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:<br>
> <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>
><br>
><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>