[vtkusers] problem with vtkqt
hesham
hesham at uni-paderborn.de
Fri Feb 4 03:58:42 EST 2005
Hi,
Im beginner ,I want to put my vtk code in qt window because I have to
make menu and anther command button,I start to use very easy example but
when I excute the programm I had this link error
Can you help me ,I use vtk4.2 ,qt3.3.3 and vtk4qt3,,
My code :
#include "vtkQtRenderWindow.h"
#include "vtkRenderer.h"
int main (void)
{
vtkRenderer *ren = vtkRenderer::New();
vtkQtRenderWindow *renWindow = vtkQtRenderWindow::New();
renWindow->AddRenderer(ren);
renWindow->SetWindowName("VtkQt-vtkQtRenderWindow");
return 0;
}
linking Error:
vtkqt.cpp
Linking...
vtkqt.obj : error LNK2001: unresolved external symbol "public: static
class vtkQtRenderWindow * __cdecl vtkQtRenderWindow::New(void)"
(?New at vtkQtRenderWindow@@SAPAV1 at XZ)
Debug/vtkqt.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
vtkqt.exe - 2 error(s), 0 warning(s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050204/0a660689/attachment.htm>
More information about the vtkusers
mailing list