[vtkusers] Build failed

David Doria daviddoria at gmail.com
Thu Feb 21 15:47:36 EST 2013


On Thu, Feb 21, 2013 at 2:38 PM, Marthed <mar4computer at yahoo.com> wrote:

>
>
> I have problem in VTK library when I trying to execute Sphere example ,
> there was error in my program,
>
> please, can anybody help me ?
>
> I use ( Cmake 2.8 )
>          ( VTK 5.10.1 )
>          (Visual studio C++ 2010 Express )
>
> the error is :
>
> 1>main.obj : error LNK2019: unresolved external symbol "public: class
> vtkPolyData * __thiscall vtkPolyDataAlgorithm::GetOutput(void)"
> (?GetOutput at vtkPolyDataAlgorithm@@QAEPAVvtkPolyData@@XZ) referenced in
> function _main
> 1>main.obj : error LNK2019: unresolved external symbol "public: static
> class
> vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)"
> (?New at vtkPolyDataMapper@@SAPAV1 at XZ) referenced in function _main
> 1>main.obj : error LNK2019: unresolved external symbol "public: static
> class
> vtkSphereSource * __cdecl vtkSphereSource::New(void)"
> (?New at vtkSphereSource@@SAPAV1 at XZ) referenced in function _main
> 1>C:\VTK\VTK_BIN\VTK-APP2\Debug\VTK-APP2.exe : fatal error LNK1120: 10
> unresolved externals
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> ---------------
>
> Thank you so much , if you read the message
>

This is happening at build time (a linker error), not at run time right?
I.e. you said you are trying to "execute" it, but did you mean you are
trying to build it?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130221/a9989903/attachment.htm>


More information about the vtkusers mailing list