[vtkusers] Help upgrading

Gavin Tabor G.R.Tabor at exeter.ac.uk
Tue Jul 17 04:08:49 EDT 2001


I _thought_ that was the case, but i don't like editing source code for
libraries. NB. the same must be the case for the MarchingCubes file as
well.

Thanks for the help

Gavin

Juerg Tschirren wrote:
> 
> vtkMarchingSquaresCases.h is missing the two lines
> 
>   #ifndef __vtkMarchingSquaresCases_h
>   #define __vtkMarchingSquaresCases_h
> 
> at the beginning, and the one line
> 
>   #endif
> 
> at the end. You can add these lines to your vtkMarchingSquaresCases.h file
> and things should work fine. (compare for example with vtkMarchingCubes.h
> if it is not clear how it should look).
> 
>   I didn't check the CVS, but if these lines are still missing, could
> somebody with write-access to the CVS please change that?
> 
> Juerg
> 
> On Mon, 16 Jul 2001, Gavin Tabor wrote:
> 
> > 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
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/vtkusers
> >

-- 

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




More information about the vtkusers mailing list