[IGSTK-Developers] Compiling errors with vtkImagePlaneWidget2D

Andinet Enquobahrie andinet.enqu at kitware.com
Thu Sep 13 11:08:37 EDT 2007


Well,

We build IGSTK against VTK 5.0  not the CVS version.

And the enum defs were recently changed in CVS .


"NO_BUTTON" is now "VTK_NO_BUTTON"


> I am using the latest version of VTK and I have the following 
> compilation errors on both my windows and linux box here. When I look 
> at the dashboard, other build machine doesn't seem to have these 
> problems.
>
> 'NO_BUTTON' is clearly defined as protect in vtkImagePlaneWidget.h
>
> Did I miss anything here?
>
> Thank you,
>
> Patrick
>
> 1>Compiling...
> 1>vtkImagePlaneWidget2D.cxx
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(67) : error 
> C2039: 'NO_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(67) : error 
> C2065: 'NO_BUTTON' : undeclared identifier
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(72) : error 
> C2039: 'LEFT_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(72) : error 
> C2065: 'LEFT_BUTTON' : undeclared identifier
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(76) : error 
> C2039: 'LEFT_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(82) : error 
> C2039: 'MIDDLE_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(82) : error 
> C2065: 'MIDDLE_BUTTON' : undeclared identifier
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(86) : error 
> C2039: 'MIDDLE_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(90) : error 
> C2039: 'RIGHT_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(90) : error 
> C2065: 'RIGHT_BUTTON' : undeclared identifier
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(94) : error 
> C2039: 'RIGHT_BUTTON' : is not a member of 'vtkImagePlaneWidget'
> 1>        
> C:\Patrick\Research\VTK\VTK\Widgets\vtkImagePlaneWidget.h(122) : see 
> declaration of 'vtkImagePlaneWidget'
> 1>..\..\IGSTKSandbox\Source\vtkImagePlaneWidget2D.cxx(171) : error 
> C3861: 'assert': identifier not found
> 1>igstkMRImageSpatialObjectImagePlaneRepresentation.cxx
> 1>c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(104) 
> : warning C4346: 
> 'igstk::ImageSpatialObjectImagePlaneRepresentation<TImageSpatialObject>::Pointer' 
> : dependent name is not a type
> 1>        prefix with 'typename' to indicate a type
> 1> 
> c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(203) 
> : see reference to class template instantiation 
> 'igstk::ImageSpatialObjectImagePlaneRepresentation<TImageSpatialObject>' 
> being compiled
> 1>c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(104) 
> : error C2061: syntax error : identifier 'Pointer'
> 1>igstkCTImageSpatialObjectImagePlaneRepresentation.cxx
> 1>c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(104) 
> : warning C4346: 
> 'igstk::ImageSpatialObjectImagePlaneRepresentation<TImageSpatialObject>::Pointer' 
> : dependent name is not a type
> 1>        prefix with 'typename' to indicate a type
> 1> 
> c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(203) 
> : see reference to class template instantiation 
> 'igstk::ImageSpatialObjectImagePlaneRepresentation<TImageSpatialObject>' 
> being compiled
> 1>c:\patrick\research\igstk\igstksandbox\source\igstkImageSpatialObjectImagePlaneRepresentation.h(104) 
> : error C2061: syntax error : identifier 'Pointer'
> 1>Generating Code...
>
> _______________________________________________
> IGSTK-Developers mailing list
> IGSTK-Developers at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
>


-- 
==========================================================
Andinet A. Enquobahrie, PhD
R&D Engineer
Kitware Inc.

28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x124
www.kitware.com





More information about the IGSTK-Developers mailing list