[vtkusers] Bug in vtkVRMLImporter

Amy Squillacote ahs at cfdrc.com
Thu Apr 24 15:17:16 EDT 2008


Are you linking against the vtkHybrid library (that contains 
vtkVRMLImporter)?
- Amy

C. Hiba wrote:
> Hi everyone,
> I'm trying to read a VRML file like this:
>  
> vtkDataSet *pDataset;
> vtkVRMLImporter *vrml = vtkVRMLImporter::New();
> vrml->SetFileName("file.wrl");
> vrml->Update();
>  
> vtkActorCollection *actors = vrml->GetRenderer()->GetActors();
> actors->InitTraversal();
> pDataset = actors->GetNextActor()->GetMapper()->GetInput();
>  
> vtkGeometryFilter* geometryFilter = vtkGeometryFilter::New();
> geometryFilter->SetInput(pDataset);
>  
> vtkPolyData* polyData = vtkPolyData::New();
> polyData = geometryFilter->GetOutput();
> polyData->Update();
>  
>  
> But i have this bug:
>  
> error LNK2001: unresolved external symbol "public: static class 
> vtkVRMLImporter * __cdecl vtkVRMLImporter::New(void)" 
> (?New at vtkVRMLImporter@@SAPAV1 at XZ <mailto:?New at vtkVRMLImporter@@SAPAV1 at XZ>)
> Debug/myProject.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
>  
> Please, what should i do?
>  
> Thank you for your help
>  
>
> __________________________________________________
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection 
> possible contre les messages non sollicités
> http://mail.yahoo.fr Yahoo! Mail
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>   

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list