[vtkusers] VTK 5 dlls + MFC : LNK2001 in Debug Mode with vtkMFCWindow

Divya Rathore divyaksr at iitk.ac.in
Sun Nov 12 03:32:51 EST 2006


Hi! Everybody,

I separated out all the DLLs, headers and libs (after source code
compilation) to make an MFC project (an imitation of
Examples\All\GUI\Win32\vtkMFC\vtkSDI) in VC++ 6.0.

It works fine in Release mode but debug mode gives following errors:

VisualizationView.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkMFCWindow::Dump(class CDumpContext &)const "
(?Dump at vtkMFCWindow@@UBEXAAVCDumpContext@@@Z)
VisualizationView.obj : error LNK2001: unresolved external symbol "public:
virtual void __thiscall vtkMFCWindow::AssertValid(void)const "
(?AssertValid at vtkMFCWindow@@UBEXXZ)
Debug/Visualization.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

Visualization.exe - 3 error(s), 0 warning(s)

What, possibly, could be going wrong?
Strangely, I did do this long back with VTK4.2 and it was working fine. Of
course at that time vtkMFCWindow class didn't exist.

regards,
Divya Rathore




More information about the vtkusers mailing list