[vtkusers] VTK Linking Error

Bill Lorensen bill.lorensen at gmail.com
Thu Jul 17 14:16:55 EDT 2014


If you use cmake to configure your project you will be much happier.
There are over 600 vtk examples with corresponding cmake files here:
http://www.vtk.org/Wiki/VTK/Examples/Cxx

Enjoy,

Bill


On Thu, Jul 17, 2014 at 1:14 PM, Rutuja Samant <samantrv at mail.uc.edu> wrote:
> No I did dont.....I just copied the text of the sample code into a new
> project in VS
>
>
> Sent from my T-Mobile 4G LTE Device
>
>
> -------- Original message --------
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Date:07/17/2014 12:51 PM (GMT-05:00)
> To: "Samant, Rutuja (samantrv)" <samantrv at mail.uc.edu>
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] VTK Linking Error
>
> 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



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list