[vtkusers] a compiler error in VTK/KWWidgets app
Dean Inglis
dean.inglis at sympatico.ca
Mon Apr 21 14:49:56 EDT 2008
I am developing an application that
uses vtkPointHandleRepresentation2D in the
representation of a vtkSeedWidget. KWWidgets
is used as the GUI to display an image
in a render window. During a lengthy callback
that does some image processing, I manually access
the main window's progress gauge to periodically
give user feedback. If I #include the headers for vtkKWApplication
and vtkPointHandleRepresentation2D in the source file for the
application main window (not the application driver),
I get the following error:
vtkPointHandleRepresentation2D.h(96) : error C2059: syntax error 'constant'
vtkPointHandleRepresentation2D.h(96) : error C2238: unexpected token(s)
preceding
';'
Nmake : fatal error U1077
etc. etc.
If I comment out the use of code requiring use of either one of those
headers,
the app compiles. I am building vtk, kwwidgets in shared release mode on 32
bit Vista
with Visual Studio 2005 and doing an nmake install to a common development
directory.
Any ideas as to what is going on would be appreciated.
Dean
More information about the vtkusers
mailing list