[vtkusers] GCC 4.0.0
François Bertel
francois.bertel at kitware.com
Thu Jun 30 16:23:10 EDT 2005
I don't think it is related to the gcc version. Did you include
vtkUnstructuredGrid.h? If not, there is no way for gcc to find the
relationship between a vtkDataObject and a vtkUnstructuredGrid, that is
vtkUnstructuredGrid is a subclass of vtkDataObject. It does not complain
about knowing nothing about vtkUnstructuredGrid because there might be a
forward class declaration of vtkUnstructuredGrid somewhere else.
Kevin H. Hobbs wrote:
> Are there any gcc 4.0.0 testers out there? I don't see anything on the
> dashboards. I'm having a rough time with things that worked just weeks
> ago. g++ complains about:
>
> vtkDelaunay3D* dlny = vtkDelaunay3D::New();
> vtkUnstructuredGridWriter* writer = vtkUnstructuredGridWriter::New();
> writer->SetInput(dlny->GetOutput());
>
> with:
>
> $ make
> Building CXX object vtk_mesh.dir/vtk_mesh.o
> /home/kevin/Documents/vtk_mesh/vtk_mesh.cxx: In function ‘int main()’:
> /home/kevin/Documents/vtk_mesh/vtk_mesh.cxx:75: error: no matching function for call to ‘vtkUnstructuredGridWriter::SetInput(vtkUnstructuredGrid*)’
> /usr/local/include/vtk/vtkWriter.h:63: note: candidates are: void vtkWriter::SetInput(vtkDataObject*)
> /usr/local/include/vtk/vtkWriter.h:64: note: void vtkWriter::SetInput(int, vtkDataObject*)
> make[2]: *** [vtk_mesh.dir/vtk_mesh.o] Error 1
> make[1]: *** [vtk_mesh.dir/all] Error 2
> make: *** [all] Error 2
>
> Is gcc being ridiculously picky?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
François Bertel, PhD | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
| Clifton Park NY 12065, USA
More information about the vtkusers
mailing list