[vtkusers] Re: vtkKdTree linking error
Siarhei Ryshkevich
sryshkev at ryerson.ca
Tue Jun 14 18:13:22 EDT 2005
Thank you so much!!!
I followed your instructions: added these files (plus some more they depend on) to CMakelists.txt and rebuilt Graphics.lib. Now everyhing is fine.
>Hi Siarhei,
>Did you rebuild VTK after you added the files for vtkKdTree and
>vtkKdNode? Did you add these two classes to the CMakeLists.txt file in
>VTK/Graphics?
>
>Also, it is entirely possible that these classes won't build in the 4.2 or
>4.4 releases since they were added later. They may depend on other code
>that was added to VTK after these releases came out. You cannot expect to
>just move a couple of classes from the current VTK CVS repository into the
>source tree from a previous release and expect everything to work properly.
>
>If you want to use vtkKdTree and vtkKdNode, you should really be using VTK
>from CVS until the 5.0 release comes out.
>
>- Amy
>
>At 02:36 PM 6/14/2005, Siarhei Ryshkevich wrote:
>>I downloaded vtkKdTree.cxx(.h) and vtkKdNode.cxx(.h) from repository,
>>since these files do not come with 4.2 or 4.4 vtk release. I copied them
>to Graphics directory of vtk source code.
>>
>>Next, I compiled my application and I have the following linking error
>>"HingeKDCutter.obj : error LNK2001: unresolved external symbol "public:
>>static class vtkKdTree * __cdecl vtkKdTree::New(void)"
>>(?New at vtkKdTree@@SAPAV1 at XZ)", which is probably caused by this line
>>"vtkKdTree* kdTree=vtkKdTree::New(); ".
>>
>>What have I done wrong?
>>Thank you.
>>_______________________________________________
>>This is the private VTK discussion list.
>>Please keep messages on-topic. Check the FAQ at:
>>http://www.vtk.org/Wiki/VTK_FAQ
>>Follow this link to subscribe/unsubscribe:
>>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list