[vtkusers] VTK5.8 Bug in Rebuilding "ALL_BUILD"?

Wenlong Wang scc.wwl at gmail.com
Tue Oct 25 08:22:27 EDT 2011


Dear all,

I'm setting up VTK5.8 in my Microsoft Vista. I would like to use it with my
VS2008 compiler and C++.

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.

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.

In line 35 of error.c in VTK5.8.0, the source code is,

/* provide a strerror function for older unix systems */
static char *
strerror(int errnum)
{
    extern int sys_nerr;
    extern char *sys_errlist[];           *//The error happens here*

    if(errnum < 0 || errnum >= sys_nerr) return NULL;
    /* else */
  return (char *)(sys_errlist[errnum]);
}

I checked the corresponding file in VTK5.6 and the source codes are the
same, but VTK5.6 runs well in my computer.

I don't know what is wrong with it. Can anyone give me some suggestions? I
will be really appreciate your kind help.

Best wishes
Long
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111025/1ea23d64/attachment.htm>


More information about the vtkusers mailing list