[vtkusers] uchar not defined - vkt 5.4.2 compilation issue on Visual Studio 2008

Akos Maroy akos at maroy.hu
Mon Jul 13 01:48:47 EDT 2009


Hi,

I'm trying to compile vtk 5.4.2 with Visual Studio 2008, and I'm getting
the following errors:

22>Compiling...
22>attr.c
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(233) : error
C2143: syntax error : missing ')' before '*'
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(233) : error
C2081: 'uchar' : name in formal parameter list illegal
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(233) : error
C2143: syntax error : missing '{' before '*'
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(233) : error
C2059: syntax error : ')'
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(248) : error
C2143: syntax error : missing ')' before '*'
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(248) : error
C2143: syntax error : missing '{' before '*'
22>c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\ncx.h(248) : error
C2059: syntax error : ')'


the first such error is indicated at source this source code:

extern int
ncx_get_short_uchar(const void *xp, uchar *ip);




I'm also getting the following errors:

22>.\attr.c(710) : error C2143: syntax error : missing ')' before '*'
22>.\attr.c(710) : error C2143: syntax error : missing '{' before '*'
22>.\attr.c(710) : error C2370: 'nc_type' : redefinition; different
storage class
22>        c:\var\install\vtk\vtk-5.4.2\utilities\vtknetcdf\netcdf.h(59) :
see declaration of 'nc_type'
22>.\attr.c(710) : error C2146: syntax error : missing ';' before
identifier 'type'


the related source code is:

static int
ncx_pad_putn_Iuchar(void **xpp, size_t nelems, const uchar *tp, nc_type type)



what am I doing wrong?


Akos





More information about the vtkusers mailing list