compiling error

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
bufa
Posts: 6
Joined: Mon Jul 04, 2005 11:47 pm

compiling error

Post by bufa »

Hello,

I tried compiling version 1.6.0 in visual c++.net (2003) and got the following error messages:

error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char ** )' to 'Tcl_CmdProc (__cdecl *)'
error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (ClientData,Tcl_Interp *,int,const char ** )' to 'Tcl_CmdProc (__cdecl *)'
error C2664: 'Tcl_Eval' : cannot convert parameter 2 from 'const char *' to 'char *'
error C2664: 'Tcl_GetDouble' : cannot convert parameter 2 from 'const char *' to 'char *'
error C2664: 'Tcl_GetInt' : cannot convert parameter 2 from 'const char *' to 'char *'
error C2664: 'Tcl_Merge' : cannot convert parameter 2 from 'const char ** ' to 'char ** '
error C2664: 'Tcl_SplitList' : cannot convert parameter 4 from 'const char *** ' to 'char *** '

Any help is appreciated,
Thanks.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

ypo need to define _TCL84 .. if unix you a -D in the compileation flag .. if windows use the latest projects and if you need to create your own look at the existing ones.
Post Reply