<div dir="ltr"><br clear="all"><div><div class="gmail_signature"><div><font face="arial, helvetica, sans-serif">I just try to build a sample program, but I am getting an error stating this...</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif"><div>1>------ Build started: Project: ConsoleApplication1, Configuration: Debug Win32 ------</div><div>1> stdafx.cpp</div><div>1> ConsoleApplication1.cpp</div><div>1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(void)" (__imp_?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ) referenced in function _main</div><div>1>D:\syncplicity\z003npra\Documents\Visual Studio 2013\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe : fatal error LNK1120: 1 unresolved externals</div><div>========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========</div><div><br></div><div><br></div><div><br></div><div>My code is: (A code from internet)</div><div><br></div><div>*******************************************************************************************************</div><div><br></div><div><div>#include "stdafx.h"</div><div>#include <windows.h></div><div><br></div><div><br></div><div>#include <vtkSmartPointer.h></div><div><br></div><div>#include <vtkActor.h></div><div>#include <vtkCubeSource.h></div><div>#include <vtkPolyData.h></div><div>#include <vtkPolyDataMapper.h></div><div>#include <vtkRenderWindow.h></div><div>#include <vtkRenderWindowInteractor.h></div><div>#include <vtkRenderer.h></div><div><br></div><div>int main(int, char *[])</div><div>{</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>// Create a cube.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkCubeSource> cubeSource =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkCubeSource>::New();</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>// Create a mapper and actor.</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkPolyDataMapper> mapper =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkPolyDataMapper>::New();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>mapper->SetInputConnection(cubeSource->GetOutputPort());</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkActor> actor =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkActor>::New();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>actor->SetMapper(mapper);</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>// Create a renderer, render window, and interactor</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderer> renderer =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderer>::New();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderWindow> renderWindow =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderWindow>::New();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderWindow->AddRenderer(renderer);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>vtkSmartPointer<vtkRenderWindowInteractor>::New();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderWindowInteractor->SetRenderWindow(renderWindow);</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>// Add the actors to the scene</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderer->AddActor(actor);</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderer->SetBackground(.3, .2, .1);</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>// Render and interact</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderWindow->Render();</div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>renderWindowInteractor->Start();</div><div><br></div><div><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>return EXIT_SUCCESS;</div><div>}</div></div><div><br></div><div><br></div><div>******************************************************************************************************</div><div><br></div></font></div><div><font face="arial, helvetica, sans-serif">Please let me know regarding this.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="arial, helvetica, sans-serif">Regards,</font><div><font face="arial, helvetica, sans-serif">Prajwal</font></div></div></div></div>
</div>