[vtk-developers] VTK5.8 Bug in Rebuilding "ALL_BUILD"?
scc.wwl at gmail.com
Tue Oct 25 08:45:33 EDT 2011
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
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 *
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtk-developers