[vtkusers] RE: vtkqt linking errors

Rupert Shute Rupert.Shute at awe.co.uk
Wed May 28 09:22:03 EDT 2003


Jianlong,
	Removing 'VTK_RENDERING_EXPORT' from vtkQGLLight.h seems to do the
trick. What the wider implications of this are I have no idea! But for now
my code seems to work ok.

Hope this works for you too,

Regards

Rupert

-----Original Message-----
From: Jianlong Zhou [mailto:zhou at isg.cs.uni-magdeburg.de]
Sent: 28 May 2003 10:14
To: Rupert Shute
Subject: EXTERNAL: Re: [vtkusers] RE: vtkqt linking errors


Hi, Rupert,

I also have these problems. I tried several versions of vtkqt library, they
are same. I have 
not got a solution yet. If you have some ideas, kindly hope to tell me.

Best regards,

Jianlong

> Hi,
> 	I'm trying to build vtk_qt1.7Beta using vtk4.2 and
> qt2.3(non-commercial) with Visual Studio .NET. After much fiddling I have
> managed to get the linking errors down to four, but I cannot work out how
to
> get rid of these (see below).
> I've tried all the usual stuff like defining QT_DLL, and the fiddles
> necessary to get qt2.3 to work with .NET.
> Does anyone have any ideas? I didn't have any problems doing this on my
> Linux box!
> 
> Many thanks
> Rupert
> 
> 
> vtk_qt error LNK2001: unresolved external symbol "protected: virtual class
> vtkObject * __thiscall vtkQGLLight::NewInstanceInternal(void)const "
> (?NewInstanceInternal at vtkQGLLight@@MBEPAVvtkObject@@XZ)
> 
> vtk_qt error LNK2001: unresolved external symbol "public: virtual char
const
> * __thiscall vtkQGLLight::GetClassNameW(void)const "
> (?GetClassNameW at vtkQGLLight@@UBEPBDXZ)
> 
> vtk_qt error LNK2001: unresolved external symbol "public: virtual int
> __thiscall vtkQGLLight::IsA(char const *)" (?IsA at vtkQGLLight@@UAEHPBD at Z)
> 
> vtk_qt error LNK2019: unresolved external symbol "__declspec(dllimport)
> protected: virtual __thiscall 
> vtkQGLLight::~vtkQGLLight(void)" (__imp_??1vtkQGLLight@@MAE at XZ) referenced
> in function "protected: virtual void * __thiscall vtkQGLLight::`scalar
> deleting destructor'(unsigned int)" (??_GvtkQGLLight@@MAEPAXI at Z)
> 
> vtk_qt fatal error LNK1120: 4 unresolved externals
> 
> vtk_qt warning LNK4217: locally defined symbol ?New at vtkQGLLight@@SAPAV1 at XZ
> (public: static class vtkQGLLight * __cdecl vtkQGLLight::New(void))
imported
> in function "protected: virtual class vtkObject * __thiscall
> vtkQtObjectFactory::CreateObject(char const *)"
> (?CreateObject at vtkQtObjectFactory@@MAEPAVvtkObject@@PBD at Z)
> --
> 
_________________________________________________________________________
______
> 
> The information in this email and in any attachment(s) is commercial in
confidence. If you 
are not the named addressee(s) or if you receive this email in error then
any distribution, 
copying or use of this communication or the information in it is strictly
prohibited.  Please 
notify us immediately by email at intadmin at awe.co.uk, and then delete this
message from 
your computer.  While attachments are virus checked, AWE plc does not accept
any liability 
in respect of any virus which is not detected.
> 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-
bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
--
_______________________________________________________________________________

The information in this email and in any attachment(s) is commercial in confidence. If you are not the named addressee(s) or if you receive this email in error then any distribution, copying or use of this communication or the information in it is strictly prohibited.  Please notify us immediately by email at intadmin at awe.co.uk, and then delete this message from your computer.  While attachments are virus checked, AWE plc does not accept any liability in respect of any virus which is not detected.




More information about the vtkusers mailing list