FW: [vtkusers] Compile Error with vtkPicker

Chandna, Sandeep (Research, Non-ge) sandeep.chandna at ge.com
Tue Jun 29 00:47:01 EDT 2004


Hi,
	I am gettin following errors while compiling the code. 

MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts w
ith use of other libs; use /NODEFAULTLIB:library
vtkobject.obj : error LNK2001: unresolved external symbol "public: virtual class
 vtkProp * __thiscall vtkAbstractPropPicker::GetPropW(void)" (?GetPropW at vtkAbstr
actPropPicker@@UAEPAVvtkProp@@XZ)
vtkobject.obj : error LNK2001: unresolved external symbol "public: virtual char
const * __thiscall vtkPicker::GetClassNameW(void)const " (?GetClassNameW at vtkPick
er@@UBEPBDXZ)
project.exe : fatal error LNK1120: 2 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.


Here vtkobject.cpp/.h are my files and the error is coming in that part of code where I am including my own picker (derived from vtkPicker) into the vtkRenderWindowInteractor. As far as I know I am including all the required libs and same code is working in Linux. If I comment that part of code
which includes my picker into the interactor the compilation works fine which means the problem is only in the picker part.

If I define my own GetProp and GetClassName functions then the compilation goes fine. But the picker does not work on compilation, ie if I press 'p' (for picking) nothing happens . I checked out whether these functions are being called or not, which showed that only the constructor of the derived class (derived from vtkPicker) is being called. What am I doing wrong.


Regards,
Sandeep



More information about the vtkusers mailing list