[vtkusers] Error LNK2019 while building examples

Dženan Zukić dzenanz at gmail.com
Tue Feb 17 17:46:13 EST 2015


When configuring the example with CMake, did you point it at the correct
build folder of VTK? It could be failing to find VTK's .lib files.

On Wed, Feb 11, 2015 at 11:36 AM, Girik Sharma <giriksharma1995 at gmail.com>
wrote:

> Hey all!
> I was trying to build the provided examples on windows using cmake with
> VS2012 as generator.But I am getting the following errors:
>
> Error 1 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 E:\DistancePointToLine\DistancePointToLine.obj DistancePointToLine
>
>
> Error 2 error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: static double __cdecl vtkLine::DistanceToLine(double * const,double
> * const,double * const)" (__imp_?DistanceToLine at vtkLine@@SANQAN00 at Z)
> referenced in function _main
> E:\DistancePointToLine\DistancePointToLine.obj DistancePointToLine
>
> Please help me.
> Thanks.
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150217/a33e88df/attachment.html>


More information about the vtkusers mailing list