[vtkusers] Help: Problem compiling example code

Lina fazeleap at yahoo.com
Sat Jul 5 11:29:52 EDT 2003


Hi all,
I'm a newbie at this. When compiling the example code available on the vtk website for visualizing a quadric function, I get the following errors. 
Compiling...
Quadric.cpp
G:\wolken\vtk\Quadric\Quadric.cpp(26) : error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkImageData *' to 'class vtkDataSet *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
G:\wolken\vtk\Quadric\Quadric.cpp(42) : error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkImageData *' to 'class vtkDataSet *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
G:\wolken\vtk\Quadric\Quadric.cpp(51) : error C2027: use of undefined type 'vtkProperty'
        g:\program files\vtk42\include\vtk\vtkactor.h(42) : see declaration of 'vtkProperty'
G:\wolken\vtk\Quadric\Quadric.cpp(51) : error C2227: left of '->SetColor' must point to class/struct/union
 
Could somebody please help me with this?
Thanks!


---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030705/209ab06f/attachment.htm>


More information about the vtkusers mailing list