I'm trying to compile the "tcl" project, but I'm getting a bunch of errors shown below (only partial). I'm using Visual C++ 2005. What's going on?
Thanks.
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(468) : error C2664: 'Tcl_GetIndexFromObj' : cannot convert parameter 3 from 'const char *[18]' to 'char **'
1> Conversion loses qualifiers
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(475) : error C2664: 'Tcl_GetSlave' : cannot convert parameter 2 from 'const char *' to 'char *'
1> Conversion loses qualifiers
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(499) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(501) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(503) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(505) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(507) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(509) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(511) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(513) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(515) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(517) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(519) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
1>c:\fem\opensees\opensees1.7.5\src\tcl\commands.cpp(521) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (__cdecl *)(ClientData,Tcl_Interp *,int,const char **)' to 'Tcl_CmdProc (__cdecl *)'
1> This conversion requires a reinterpret_cast, a C-style cast or function-style cast
Compilation problems - Tcl
Moderators: silvia, selimgunay, Moderators
tcl
Hi,
Thanks for your reply.
I did set the include path to tcl8.4. I am using ActiveTcl 8.4.17.0.
The preprocessor _TCL84 is also there.
Any ideas?
Thanks.
Thanks for your reply.
I did set the include path to tcl8.4. I am using ActiveTcl 8.4.17.0.
The preprocessor _TCL84 is also there.
Any ideas?
Thanks.