[vtk-developers] TCL Wrapping driving me insane -- SYNTAX ERROR -- can you be more specific?
nkwmailinglists at gmail.com
Tue Mar 25 13:04:42 EDT 2008
Thanks for the extremely prompt reply. I haven't looked exhaustively
for it, but I've yet to find any documentation on VTK wrapping. Is
there some, that I've just missed finding?
On Tue, Mar 25, 2008 at 11:59 AM, Brad King <brad.king at kitware.com> wrote:
> kent williams wrote:
> > So how do you debug problems where the VTK wrapping generator gives
> > you the dread SYNTAX ERROR found message?
> > I know the more common issues -- VTK wrapping is confused by
> > templates, typedefs etc etc. But the following header says 'SYNTAX
> > ERROR ... before line 9 ***' and I can't for the life of me figure out
> > what the problem is.
> > There are no syntax errors as far as the C++ compiler is oncerned, I
> > can compile the C++ file for this this class so the header is fine by
> > GCC.
> > I realize that writing proper error handling for a Yacc parser is a
> > pain in the butt, but I sure wish the VTK wrapping parser could be a
> > teensy bit more specific.
> > Here's the header file that won't work:
> > #if !defined(BTPropertyDialog_h)
> > #define BTPropertyDialog_h
> > #include <vtkKWDialog.h>
> > class vtkProperty;
> > class vtkKWSurfacePropertyWidget;
> > class vtkObject;
> > class BTPropertyDialog : public vtkKWDialog
> All wrapped class names must begin in "vtk".
More information about the vtk-developers