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.<div><br></div><div>Jeff<br><br><div class="gmail_quote">
On Mon, Mar 21, 2011 at 11:07 AM, Martin Waitzbauer <span dir="ltr"><<a href="mailto:mazzok@gmx.at">mazzok@gmx.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi there, i have problems using a subclass of vtkRenderView in my project<br>
i get the compiler error:<br>
error LNK2019: unresolved external symbol "public: static class MyClass * __cdecl MyClass::New(void)" (?New@MyClass@@SAPAV1@XZ) referenced in function "protected: virtual class vtkObjectBase * __thiscall MyClass::NewInstanceInternal(void)const " (?NewInstanceInternal@MyClass@@MBEPAVvtkObjectBase@@XZ)<br>

<br>
seems like the MyClass instance cannot be instantiated<br>
<br>
i included the vtkCommon lib in my CmakeList file TARGET_LINK_LIBRARIES(... vtkCommon)<br>
<br>
does someone have any idea what could help?<br>
<br>
Thanks!!<br>
Best regards<br>
M<br>
--<br>
NEU: FreePhone - kostenlos mobil telefonieren und surfen!<br>
Jetzt informieren: <a href="http://www.gmx.net/de/go/freephone" target="_blank">http://www.gmx.net/de/go/freephone</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>
</div>