[vtkusers] RE : Re: Bug in vtkVRMLImporter

Amy Squillacote ahs at cfdrc.com
Fri Apr 25 08:41:06 EDT 2008


No. You should include vtkVRMLImporter.h in your code. Somewhere you 
must have a list of libraries your code is linking against; add 
vtkHybrid.lib that list.

- Amy

C. Hiba wrote:
> Hi Amy,
> You mean that i should include a library called "vtkHybrid.h"?
> If not, what should i do exactly??
> Thanks a lot
>
> */Amy Squillacote <ahs at cfdrc.com>/* a écrit :
>
>     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 )
>     > 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
>
>
>
> __________________________________________________
> 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
>

-- 
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