The most likely explanation is that you have another directory in your PATH environment variable that contains VTK dlls. (Different than the ones you have in your build directory.)<br><br>Remove that other directory from the PATH and it should work fine.
<br><br>HTH,<br>David<br><br><div><span class="gmail_quote">On 1/17/08, <b class="gmail_sendername">Sameer Dhote</b> <<a href="mailto:samir.dhote@gmail.com">samir.dhote@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>i have got this error while trying to build a vtk code.. The code<br>works builds fine but does not execute but results in the following<br>error<br><br>The code is to display a glyph<br><br>/*********************************************Code*******************************************************
<br> vtkSphereSource *sphere = vtkSphereSource::New();<br> sphere->SetRadius(1);<br><br> vtkPolyDataMapper *mapper1 = vtkPolyDataMapper::New();<br> mapper1->SetInputConnection(sphere->GetOutputPort());
<br><br> vtkActor *actor1 = vtkActor::New();<br> actor1->SetMapper(mapper1);<br><br><br> vtkConeSource *cone = vtkConeSource::New();<br> cone->SetRadius(1);<br> cone->SetHeight(1);
<br> cone->SetResolution(20);<br><br> vtkGlyph3D *glyph = vtkGlyph3D::New();<br> glyph->SetInputConnection(sphere->GetOutputPort());<br> glyph->SetSource(cone->GetOutput());<br> glyph->SetVectorModeToUseNormal();
<br> glyph->SetScaleModeToScaleByVector();<br> glyph->SetScaleFactor(0.5);<br><br> vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();<br> mapper->SetInputConnection(glyph->GetOutputPort());
<br><br> vtkActor *actor = vtkActor::New();<br> actor->SetMapper(mapper);<br><br> vtkRenderer *ren1 = vtkRenderer::New();<br> ren1->AddActor(actor);<br> ren1->AddActor(actor1);<br>
ren1->SetBackground(0.6,0.8,0.6);<br> ren1->SetViewport(0.0,0.0,0.5,1.0);<br><br><br> vtkRenderWindow *rw1 = vtkRenderWindow::New();<br> rw1->AddRenderer(ren1);<br> rw1->SetSize(600,600);
<br><br><br> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<br> iren->SetRenderWindow(rw1);<br><br><br> vtkInteractorStyleTrackballCamera *style =<br> vtkInteractorStyleTrackballCamera::New();
<br> iren->SetInteractorStyle(style);<br><br> iren->Initialize();<br> iren->Start();<br><br> sphere->Delete();<br> cone->Delete();<br> glyph->Delete();<br> mapper->Delete();
<br> actor->Delete();<br> ren1->Delete();<br> rw1->Delete();<br> iren->Delete();<br> style->Delete();<br><br> return 0;<br><br><br>/*************************************************************************Error******************************************************
<br><br>"The procedure entry<br>point?GetNextItemAsObject@vtkCollection@@QAEPVvtkObject@@AAPAX@Z could<br>not be found in the dynamic link library vtkCommon.dll"<br><br>What could be the possible reason behind this??
<br><br>Regards<br>Sameer<br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ
</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>