[vtkusers] no matching function for call to vtkPolyData::GetNumberofPoints()

Vetria Byrd byrdv at cis.uab.edu
Tue Jan 27 13:23:07 EST 2004


I corrected the typo: 

#include "vtkPolyData.h"
#include "vtkPolyDataReader.h"

void main ()
{


// read data from file
  vtkPolyDataReader *PolyDataReader = vtkPolyDataReader::New();
  vtkPolyData *PolyData;
  
  PolyDataReader->SetFileName("Data/honolulu.vtk");
  PolyDataReader->Update();
  PolyData = PolyDataReader->GetOutput();
  printf("pts read: %d\n",PolyData->GetNumberOfPoints() );
      
  //
  // Free up any objects created
  //
  PolyData->Delete();
  PolyDataReader->Delete();
  
  
  return 0;      
}


and recompiled, now I get the following:

Reader.o: In function `main':
Reader.o(.text+0x4): undefined reference to `vtkPolyDataReader::New(void)'
Reader.o(.text+0x74): undefined reference to `vtkPolyDataReader::GetOutput(void)
'

Thanks,
Vetria

>Delivered-To: vtkusers at vtk.org
>From: Mathieu Malaterre <mathieu.malaterre at kitware.com>
>User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031114
>X-Accept-Language: en-us, en
>MIME-Version: 1.0
>To: Vetria Byrd <byrdv at cis.uab.edu>
>Cc: vtkusers at vtk.org
>Subject: Re: [vtkusers] no matching function for call to 
vtkPolyData::GetNumberofPoints()
>Content-Transfer-Encoding: 7bit
>X-BeenThere: vtkusers at vtk.org
>X-Mailman-Version: 2.0.11
>List-Help: <mailto:vtkusers-request at vtk.org?subject=help>
>List-Post: <mailto:vtkusers at vtk.org>
>List-Subscribe: <http://www.vtk.org/mailman/listinfo/vtkusers>, 
<mailto:vtkusers-request at vtk.org?subject=subscribe>
>List-Id: <vtkusers.vtk.org>
>List-Unsubscribe: <http://www.vtk.org/mailman/listinfo/vtkusers>, 
<mailto:vtkusers-request at vtk.org?subject=unsubscribe>
>List-Archive: <http://www.vtk.org/pipermail/vtkusers/>
>Date: Tue, 27 Jan 2004 12:55:17 -0500
>
>
>> `vtkPolyData::GetNumberofPoints ()'
>
>Because the proper spelling is:
>
>vtkPolyData::GetNumberOfPoints()
>
>HTH
>Mathieu
>
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: 
<http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list