Dear all,<br><br>I'm setting up VTK5.8 in my Microsoft Vista. I would like to use it with my VS2008 compiler and C++. <br><br>I've installed VTK5.8 into my system and used CMake to configure it. I turned vtk_use_guisupport, build_examples and vtk_use_mfc on and left all other options as default.<br>
<br>However, as I finished with CMake and tried to rebuild "ALL_BUILD" in VTK.sln, there was a failure happens in line 35 of 'error.c' in "D:\VTK 5.8.0\VTK\Utilities\vtknetcdf\error.c". The error message says "error C2090: the function returns an array". And this error caused the failure of building vtkNetCDF.lib, then 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><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">/* provide a strerror function for older unix systems */</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">static char *</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">strerror(int errnum)</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">{</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> extern int sys_nerr;</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> extern char *sys_errlist[];</span> <b>//The error happens here</b><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> if(errnum < 0 || errnum >= sys_nerr) return NULL;</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> /* else */</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"><span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);"> return (char *)(sys_errlist[errnum]);</span><br style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">
<span style="background-color: rgb(255, 255, 255); color: rgb(255, 0, 0);">}</span><br><br>I checked the corresponding file in VTK5.6 and the source codes are the 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 will be really appreciate your kind help.<br>
<br>Best wishes<br>Long<br>