Re: compile error on amd64 in src/ComputeTclBC.C

From: Gengbin Zheng (gzheng_at_ks.uiuc.edu)
Date: Wed Mar 15 2006 - 14:38:19 CST

try adding
-DUSE_NON_CONST
to TCLFLAGS
in namd2/arch/Linux-amd64.tcl

Gengbin

Sabuj Pattanayek wrote:

> Hi,
>
> I got a compile error this time on a different platform, amd64:
>
> -O2 -m64 -fexpensive-optimizations -ffast-math -o obj/ComputeTclBC.o
> -c src/ComputeTclBC.C
> src/ComputeTclBC.C: In constructor
> `ComputeTclBC::ComputeTclBC(ComputeID)':
> src/ComputeTclBC.C:37: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:37: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:39: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:39: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:43: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:43: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:45: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:45: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:47: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:47: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:49: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:49: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:51: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:51: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:53: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:53: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:55: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:55: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:57: error: invalid conversion from `int (*)(void*,
> Tcl_Interp*, int, char**)' to `int (*)(void*, Tcl_Interp*, int, const
> char**)'
> src/ComputeTclBC.C:57: error: initializing argument 3 of
> `Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
> (*)(void*, Tcl_Interp*, int, const char**), void*, void (*)(void*))'
> src/ComputeTclBC.C:62: error: invalid conversion from `const char*' to
> `char*'
> src/ComputeTclBC.C:65: error: invalid conversion from `const char*' to
> `char*'
> src/ComputeTclBC.C: In member function `virtual void
> ComputeTclBC::doWork()':
> src/ComputeTclBC.C:121: error: invalid conversion from `const char*'
> to `char*'
> make: *** [obj/ComputeTclBC.o] Error 1

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:41:45 CST