[vtk-developers] using own VTK Class

Jeff Baumes jeff.baumes at kitware.com
Mon Mar 21 12:24:42 EDT 2011


Can you include the code for your subclass MyClass? One thing may be if you
copied source code and left the VTK_VIEWS_EXPORT in the header file, it
should be removed.

Jeff

On Mon, Mar 21, 2011 at 11:07 AM, Martin Waitzbauer <mazzok at gmx.at> wrote:

> Hi there, i have problems using a subclass of vtkRenderView in my project
> i get the compiler error:
> error LNK2019: unresolved external symbol "public: static class MyClass *
> __cdecl MyClass::New(void)" (?New at MyClass@@SAPAV1 at XZ) referenced in
> function "protected: virtual class vtkObjectBase * __thiscall
> MyClass::NewInstanceInternal(void)const " (?NewInstanceInternal at MyClass
> @@MBEPAVvtkObjectBase@@XZ)
>
> seems like the MyClass instance cannot be instantiated
>
> i included the vtkCommon lib in my CmakeList file TARGET_LINK_LIBRARIES(...
> vtkCommon)
>
> does someone have any idea what could help?
>
> Thanks!!
> Best regards
> M
> --
> NEU: FreePhone - kostenlos mobil telefonieren und surfen!
> Jetzt informieren: http://www.gmx.net/de/go/freephone
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110321/e63a86ab/attachment.html>


More information about the vtk-developers mailing list