vtkImplicitVolume compilation error

Rainer Sabelka sabelka at iue.tuwien.ac.at
Wed Apr 12 16:08:26 EDT 2000


I just checked out the latest nightlies and compiled under linux using
egcs-2.91.66.
It gave me the following error:

c++  -g -O2 -fPIC -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H
-I.  -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging
-DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib
-DVTK_USE_CONTRIB   -DVTK_USE_MESA   -I/usr/X11R6/include
-I./../common   -I/usr/local/jdk118/include
-I/usr/local/jdk118/include/linux  -c vtkImplicitVolume.cxx -o
vtkImplicitVolume.o
vtkImplicitVolume.cxx: In method
`vtkImplicitVolume::~vtkImplicitVolume()':
vtkImplicitVolume.cxx:81: call of overloaded `SetVolume(NULL)' is
ambiguous
vtkImplicitVolume.h:98: candidates are:
vtkImplicitVolume::SetVolume(vtkStructuredPoints *)
vtkImplicitVolume.h:101:
vtkImplicitVolume::SetVolume(vtkImageData *)

below is a fix.

Regards,
Rainer

--- vtk.old/graphics/vtkImplicitVolume.cxx      Wed Apr 12 20:32:20 2000

+++ vtk/graphics/vtkImplicitVolume.cxx  Wed Apr 12 20:33:00 2000
@@ -78,7 +78,7 @@

 vtkImplicitVolume::~vtkImplicitVolume()
 {
-  this->SetVolume(NULL);
+  this->SetVolume((vtkStructuredPoints *)NULL);
   this->PointIds->Delete();
 }


--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------



More information about the vtkusers mailing list