[vtkusers] Help upgrading

Gavin Tabor G.R.Tabor at exeter.ac.uk
Mon Jul 16 13:36:23 EDT 2001


Dear all,

I've been trying to migrate some CFD visualisation codes from 2.4 to 3.2
(latest version of VTK) and have hit a snag. 
As far as I can make out, the same header file -
vtkMarchingSquaresCases.h
is getting included twice, and a "typedef struct" instruction is getting
screwed up. I don't understand why this is happening, or what I can do
to
stop it happening. (I also don't understand why it wasn't happening
before
- the header files in 2.4 and 3.2 are the same). 

Any suggestions would be appreciated.

Compilation output appended 

Gavin

---------------------------------------------------------------------------

SOURCE=vtkIso.C ; g++ -DFOAM_EXCEPTION -DsolarisGcc -DsolarisGccOptMPICH
-DscalarMachine -DoptSolvers -DPARALLEL -DUSEMPI -Wall -O2
-fno-schedule-insns  -DNoRepository -ftemplate-depth-17
-I/space/foam/foam2.0/src/foam/lnInclude -IlnInclude -I.
-I/space/foam/foam2.0/src/mpich-1.2.1/platforms/solarisGccOptMPICH/include
-I/usr/openwin/include/X11 -DWM_PROJECT_VERSION='"'2.0'"'
-I/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude
-I/space/home/gavin/foam/applications/graphics/vtkFoamGrid/lnInclude
-I/space/foam/foam2.0/src/foam/lnInclude -I../common   -fPIC -c $SOURCE
-o Make/solarisGccOptMPICH/vtkIso.o
In file included from
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkCommon.h:105,
                 from
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtk.h:43,
                 from
/space/home/gavin/foam/applications/graphics/vtkFoamGrid/lnInclude/vtkFoamGrid.H:22,
                 from vtkIso.C:25:
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingCubesCases.h:48:
conflicting types for `typedef struct TRIANGLE_CASES TRIANGLE_CASES'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingCubesCases.h:48:
previous declaration as `typedef struct TRIANGLE_CASES TRIANGLE_CASES'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingCubesCases.h:54:
conflicting types for `struct TRIANGLE_CASES triCases[]'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingCubesCases.h:54:
previous declaration as `struct TRIANGLE_CASES triCases[256]'
In file included from
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkCommon.h:106,
                 from
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtk.h:43,
                 from
/space/home/gavin/foam/applications/graphics/vtkFoamGrid/lnInclude/vtkFoamGrid.H:22,
                 from vtkIso.C:25:
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingSquaresCases.h:49:
conflicting types for `typedef struct LINE_CASES LINE_CASES'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingSquaresCases.h:49:
previous declaration as `typedef struct LINE_CASES LINE_CASES'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingSquaresCases.h:51:
conflicting types for `struct LINE_CASES lineCases[]'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingSquaresCases.h:51:
previous declaration as `struct LINE_CASES lineCases[16]'
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingCubesCases.h:54:
warning: `struct TRIANGLE_CASES triCases[256]' defined but not used
/space/home/gavin/foam/applications/graphics/vtk3.2/lnInclude/vtkMarchingSquaresCases.h:51:
warning: `struct LINE_CASES lineCases[16]' defined but not used
make: *** [Make/solarisGccOptMPICH/vtkIso.o] Error 1

------------------------------------------------------------------------


-- 

Dr. Gavin Tabor
School of Engineering and Computer Science
Department of Engineering
University of Exeter




More information about the vtkusers mailing list