[vtkusers] Can't build vtk4.0 under msvc with tcl8.4 !

Vincent Daanen vincent.daanen at imag.fr
Mon Nov 4 09:23:05 EST 2002


Hi,

I'm trying to build vtk4.0 with MsVc (Win2000).
When compiling tcl wrapping  (with tcl8.3.0) I get linking erros 
(_TkWinChildProc at 16). I also try tu build vtk with Tcl 8.4.1 but
get these errors :
-----------------------------------------------------
Compiling...
vtkTclUtil.cxx
D:\DevTools\KitWare\vtk4.0\Common\vtkTclUtil.cxx(290) : error C2664: 
'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl 
*)(void *,struct Tcl_Interp *,int,char *[])' to 'int (__cdecl *)(void 
*,struct Tcl_Interp *,int,const char *[])'
        This conversion requires a reinterpret_cast, a C-style cast or 
function-style cast
D:\DevTools\KitWare\vtk4.0\Common\vtkTclUtil.cxx(544) : error C2664: 
'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl 
*)(void *,struct Tcl_Interp *,int,char *[])' to 'int (__cdecl *)(void 
*,struct Tcl_Interp *,int,const char *[])'
        This conversion requires a reinterpret_cast, a C-style cast or 
function-style cast
D:\DevTools\KitWare\vtk4.0\Common\vtkTclUtil.cxx(576) : error C2664: 
'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (void 
*,struct Tcl_Interp *,int,char *[])' to 'int (__cdecl *)(void *,struct 
Tcl_Interp *,int,const char *[])'
        None of the functions with this name in scope match the target type
-----------------------------------------------------

What's the hell ? and what should I do to successfully build vtk4.0 with 
tcl wrapping support ?
 
 Vince

-- 
Vincent Daanen,
Research Engineer- Post Doctoral Position
Laboratoire TIMC/IMAG Equipe GMCAO - Université Joseph Fourier - CNRS UMR 5525
Faculté de Médecine - Domaine de la Merci - 38706 La Tronche cedex - France
Tel: +33 (0)4 76 54 95 23
Vincent.Daanen at imag.fr 





More information about the vtkusers mailing list