[vtkusers] VTK Linking Error

Bill Lorensen bill.lorensen at gmail.com
Thu Jul 17 12:51:05 EDT 2014


Are you configuring your example program with cmake?


On Thu, Jul 17, 2014 at 8:26 AM, Samant, Rutuja (samantrv)
<samantrv at mail.uc.edu> wrote:
> Hello,
>
>
> I am using the vtk library for the first time. I am trying to run a simple
> example from the vtk examples available online using VS 2010. However I am
> making some mistake in linking the required vtk lib and directories. I keep
> getting the following error:
>
>
> error LNK2019: unresolved external symbol "__declspec(dllimport) public:
> static double __cdecl vtkLine::DistanceToLine(double * const,double *
> const,double * const,double &,double * const)"
> (__imp_?DistanceToLine at vtkLine@@SANQAN00AAN0 at Z) referenced in function _main
>
>
> I have built vtk using cmake and also added the vtk directory to additional
> directories and included the vtk library to my project. Could you help me
> figure out whether I am missing any step in the linking process?
>
>
>
> Regards,
> Rutuja
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list