For Programmers: Free Programming Magazines  


Home > Archive > Tcl > October 2005 > mysqltcl on Aix 5.1 with tcl8.4.9









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author mysqltcl on Aix 5.1 with tcl8.4.9
yguerin

2005-10-25, 7:02 pm

Hello,

I try to compile mysqltcl-2.51 with tcl-8.4.9 and mysql-2.23.49 on Aix
5.1 and I got the following error:

[compile@axap00 tcl-sql-mysql3.23-tcl8.4.9]$ gmake
g++ -c -I/home/compile/mysql/mysql-3.23.49/include -o obj/sql.o
sql.cc
sql.cc: In function `int Sql_Init(Tcl_Interp*)':
sql.cc:228: cannot convert `int (*)(void*, Tcl_Interp*, int, char**)'
to `int
(*)(void*, Tcl_Interp*, int, const char**)' for argument `3' to
`Tcl_Command_* Tcl_CreateCommand(Tcl_Interp*, const char*, int
(*)(void*,
Tcl_Interp*, int, const char**), void*, void (*)(void*))'
gmake: *** [obj/sql.o] Error 1


Please help me, what I miss ?

Ralf Fassel

2005-10-25, 9:57 pm

* "yguerin" <yvesguerin@yahoo.ca>
| sql.cc:228: cannot convert
| `int (*)(void*, Tcl_Interp*, int, char**)'
| to `int (*)(void*, Tcl_Interp*, int, const char**)'

You're trying to pass a function which expects a 'char**' where only a
function expecting a 'const char**' is valid.

Adjust the signature of the function you try to pass to
Tcl_CreateCommand() to expect a const char** instead of a char**.

HTH
R'
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com