[vtkusers] Creating a subclass of a vtk class

David Cole david.cole at kitware.com
Fri Jun 20 06:44:33 EDT 2008


You need to link against vtkCommon.

If you are (presumably) using CMake, you would need:
TARGET_LINK_LIBRARIES(myLib vtkCommon)
in your CMakeLists.txt file.


HTH,
David



On Fri, Jun 20, 2008 at 5:14 AM, Dmitri Danewitz <d.danewitz at yahoo.de>
wrote:

> Hi!
>
>
>
> When I try to create an object from a subclass of a vtk superclass compiler
> complains:
>
>
>
> error LNK2001: unresolved external symbol "public: virtual void __thiscall
> vtkObjectBase::
>
>
>
> Does someone know what could be the matter?
>
> ------------------------------
> Gesendet von Yahoo! Mail<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52427/*http://de.overview.mail.yahoo.com>.
>
> Dem pfiffigeren Posteingang.
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080620/31836218/attachment.htm>


More information about the vtkusers mailing list