[vtkusers] VTK Compilation Error

Andy Eow vtkitk at hotmail.com
Sun Sep 19 19:46:48 EDT 2004


Hi,

I'm having some problems compiling VTK 4.2 ... using CMake 2.0.3 & gcc-3.4.2. I've tried other cmake & gcc versions but keep getting the same error as below. There was a previous issue with finding gl.h but that's solved already by installing glutg3-dev. Does anyone have any idea what's wrong? Thanks!

Cheers,
Andy


Building object file vtkDataArrayCollection.o...
Building object file vtkDataArrayCollectionIterator.o...
Building object file vtkDataArraySelection.o...
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:36: error: parse error before
   `<' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:37: error: parse error before
   `<' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In constructor `
   vtkDataArraySelection::vtkDataArraySelection()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:42: error: invalid use of
   undefined type `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:31: error: forward declaration
   of `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:43: error: invalid use of
   undefined type `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:32: error: forward declaration
   of `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In destructor `virtual
   vtkDataArraySelection::~vtkDataArraySelection()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:49: warning: possible problem
   detected in invocation of delete operator:
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:49: warning: invalid use of
   undefined type `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:32: warning: forward
   declaration of `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:49: note: neither the
   destructor nor the class-specific operator delete will be called, even if
   they are declared when the class is defined.
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:50: warning: possible problem
   detected in invocation of delete operator:
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:50: warning: invalid use of
   undefined type `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:31: warning: forward
   declaration of `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:50: note: neither the
   destructor nor the class-specific operator delete will be called, even if
   they are declared when the class is defined.
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::EnableArray(const char*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:63: error: `::vector'
   undeclared (first use here)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:63: error: `::string'
   undeclared (first use here)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:63: error: `::iterator'
   undeclared (first use here)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:63: error: parse error before
   `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:65: error: `i' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:65: error: (Each undeclared
   identifier is reported only once for each function it appears in.)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:65: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:67: error: `begin' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:76: error: `push_back'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::DisableArray(const char*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:85: error: parse error before
   `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:87: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:89: error: `begin' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:98: error: `push_back'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `int
   vtkDataArraySelection::ArrayIsEnabled(const char*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:108: error: parse error
   before `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:110: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:112: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `int
   vtkDataArraySelection::ArrayExists(const char*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:123: error: parse error
   before `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:125: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::EnableAllArrays()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:132: error: parse error
   before `>' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:133: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::DisableAllArrays()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:151: error: parse error
   before `>' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:152: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `int
   vtkDataArraySelection::GetNumberOfArrays()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:169: error: `size' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `const
   char* vtkDataArraySelection::GetArrayName(int)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:175: error: parse error
   before `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:176: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:176: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `int
   vtkDataArraySelection::GetArraySetting(int)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:186: error: parse error
   before `>' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:187: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:187: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::RemoveAllArrays()':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:199: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:200: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:200: error: `erase'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `int
   vtkDataArraySelection::AddArray(const char*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:217: error: `push_back'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::SetArrays(const char* const*, int)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:231: error: invalid use of
   undefined type `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:31: error: forward declaration
   of `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:233: error: invalid use of
   undefined type `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:32: error: forward declaration
   of `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:235: error: `reserve'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:243: error: `push_back'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:247: error: parse error
   before `=' token
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:251: error: `it' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:251: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:253: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:259: warning: possible
   problem detected in invocation of delete operator:
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:259: warning: invalid use of
   undefined type `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:31: warning: forward
   declaration of `class vtkDataArraySelectionArrayNamesType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:259: note: neither the
   destructor nor the class-specific operator delete will be called, even if
   they are declared when the class is defined.
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:260: warning: possible
   problem detected in invocation of delete operator:
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:260: warning: invalid use of
   undefined type `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.h:32: warning: forward
   declaration of `class vtkDataArraySelectionArraySettingsType'
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:260: note: neither the
   destructor nor the class-specific operator delete will be called, even if
   they are declared when the class is defined.
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx: In member function `void
   vtkDataArraySelection::CopySelections(vtkDataArraySelection*)':
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:274: error: `begin'
   undeclared (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:276: error: `end' undeclared
   (first use this function)
/scratch/VTK-4.2/Common/vtkDataArraySelection.cxx:276: error: `insert'
   undeclared (first use this function)
make[3]: *** [vtkDataArraySelection.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Common] Error 2
make: *** [default_target] Error 2

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040919/de9ffa20/attachment.htm>


More information about the vtkusers mailing list