<div dir="ltr">Yes I know it's a linker error. <div>I followed all the steps given.</div><div><br></div><div>Step1: Linking of INCLUDE files in VS2013 of CMAKE_INSTALL Prefix path</div><div>Step2: Linking of LIB files in VS2013 of CMAKE_INSTALL Prefix path<br></div><div>Step3: Adding of of LIB files name used in program to additional dependencies in Linker C++.<br></div><div>Step4: Adding Bin folder path to system variables.</div><div><br></div><div>Anything apart from this? Do you know any link or tutorial that defines the procedure properly? </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif">Regards,</font><div><font face="arial, helvetica, sans-serif">Prajwal</font></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 27, 2016 at 4:58 PM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The error is a linker error that indicates you are not linking against<br>
the VTK libraries.<br>
<br>
HTH,<br>
Cory<br>
<div><div class="h5"><br>
On Wed, Jul 27, 2016 at 9:52 AM, Prajwal Sapare<br>
<<a href="mailto:prajwal.sapare@gmail.com">prajwal.sapare@gmail.com</a>> wrote:<br>
><br>
> I just try to build a sample program, but I am getting an error stating<br>
> this...<br>
><br>
><br>
> 1>------ Build started: Project: ConsoleApplication1, Configuration: Debug<br>
> Win32 ------<br>
> 1> stdafx.cpp<br>
> 1> ConsoleApplication1.cpp<br>
> 1>ConsoleApplication1.obj : error LNK2019: unresolved external symbol<br>
> "__declspec(dllimport) public: class vtkAlgorithmOutput * __thiscall<br>
> vtkAlgorithm::GetOutputPort(void)"<br>
> (__imp_?GetOutputPort@vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ) referenced<br>
> in function _main<br>
> 1>D:\syncplicity\z003npra\Documents\Visual Studio<br>
> 2013\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe : fatal<br>
> error LNK1120: 1 unresolved externals<br>
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br>
><br>
><br>
><br>
> My code is: (A code from internet)<br>
><br>
> *******************************************************************************************************<br>
><br>
> #include "stdafx.h"<br>
> #include <windows.h><br>
><br>
><br>
> #include <vtkSmartPointer.h><br>
><br>
> #include <vtkActor.h><br>
> #include <vtkCubeSource.h><br>
> #include <vtkPolyData.h><br>
> #include <vtkPolyDataMapper.h><br>
> #include <vtkRenderWindow.h><br>
> #include <vtkRenderWindowInteractor.h><br>
> #include <vtkRenderer.h><br>
><br>
> int main(int, char *[])<br>
> {<br>
> // Create a cube.<br>
> vtkSmartPointer<vtkCubeSource> cubeSource =<br>
> vtkSmartPointer<vtkCubeSource>::New();<br>
><br>
> // Create a mapper and actor.<br>
> vtkSmartPointer<vtkPolyDataMapper> mapper =<br>
> vtkSmartPointer<vtkPolyDataMapper>::New();<br>
> mapper->SetInputConnection(cubeSource->GetOutputPort());<br>
><br>
> vtkSmartPointer<vtkActor> actor =<br>
> vtkSmartPointer<vtkActor>::New();<br>
> actor->SetMapper(mapper);<br>
><br>
> // Create a renderer, render window, and interactor<br>
> vtkSmartPointer<vtkRenderer> renderer =<br>
> vtkSmartPointer<vtkRenderer>::New();<br>
> vtkSmartPointer<vtkRenderWindow> renderWindow =<br>
> vtkSmartPointer<vtkRenderWindow>::New();<br>
> renderWindow->AddRenderer(renderer);<br>
> vtkSmartPointer<vtkRenderWindowInteractor> renderWindowInteractor =<br>
> vtkSmartPointer<vtkRenderWindowInteractor>::New();<br>
> renderWindowInteractor->SetRenderWindow(renderWindow);<br>
><br>
> // Add the actors to the scene<br>
> renderer->AddActor(actor);<br>
> renderer->SetBackground(.3, .2, .1);<br>
><br>
> // Render and interact<br>
> renderWindow->Render();<br>
> renderWindowInteractor->Start();<br>
><br>
> return EXIT_SUCCESS;<br>
> }<br>
><br>
><br>
> ******************************************************************************************************<br>
><br>
> Please let me know regarding this.<br>
><br>
><br>
> Regards,<br>
> Prajwal<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Cory Quammen<br>
R&D Engineer<br>
Kitware, Inc.<br>
</font></span></blockquote></div><br></div>