[Insight-users] About CVS checkout of VTK and SegmentationEditor example

zhao zhao_c_g@263.net
Thu, 5 Sep 2002 11:17:34 +0800


Hi Josh and other Friends,
	
	I want to run the SegmentationEditor example. According to related directions, I get a CVS checkout of VTK, but there are four compiling errors like this:

//////////////////error message///////////////////
D:\VtkCVS\Common\vtkTclUtil.cxx(318) : 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

/////////////////error causing function///////////
  Tcl_CreateCommand(interp,name,
                    reinterpret_cast<vtkTclCommandType>(command),
                    (ClientData)(as),
                    (Tcl_CmdDeleteProc *)vtkTclGenericDeleteObject);

	How to correct or circumvent it? Can VTK4.0 be used to let this example run smoothly? Thanks!

Zhao ChenGuang
P.O.Box:010,
Dept. BME,
Shanghai Jiao Tong University,
1954# Hua Shan Road,
Shanghai,P.R.China,
200030