Compilation problems - Tcl

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

Moderators: silvia, selimgunay, Moderators

Post Reply
kengwit
Posts: 3
Joined: Sat Jan 05, 2008 12:08 pm
Location: Pasadena,CA
Contact:

Compilation problems - Tcl

Post by kengwit »

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
Rodgers
Posts: 31
Joined: Wed Sep 15, 2004 4:44 pm
Location: University of California, Davis

Post by Rodgers »

You seem to have the wrong Tcl Version, it has to be 8.4 and has the following flag for compilation

/D "_TCL84"
It is not what you can do, it is what you can dream!
kengwit
Posts: 3
Joined: Sat Jan 05, 2008 12:08 pm
Location: Pasadena,CA
Contact:

tcl

Post by kengwit »

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.
kengwit
Posts: 3
Joined: Sat Jan 05, 2008 12:08 pm
Location: Pasadena,CA
Contact:

Post by kengwit »

For some reason, the problem went away after I installed the new visual C++ 9.0. I think the earlier C++ installation was not done properly.
Post Reply