[vtkusers] About the version number
David Doria
daviddoria at gmail.com
Tue Oct 25 08:12:30 EDT 2011
On Tue, Oct 25, 2011 at 7:06 AM, Wenlong Wang <scc.wwl at gmail.com> wrote:
> 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
>
I would send this to the VTK developers list with a more descriptive title.
David
More information about the vtkusers
mailing list