Menu

Error compiling tcl-sql

Help
2003-09-12
2013-02-21
  • Mark Stocker

    Mark Stocker - 2003-09-12

    I get the following error when trying to compile on both FreeBSD and Linux:

    sql-mysql.cc: In member function `virtual char* Sql_mysql::getErrorMsg()':
    sql-mysql.cc:23: invalid conversion from `const char*' to `char*'
    sql-mysql.cc: In member function `virtual int Sql_mysql::connect(int, char**)':
    sql-mysql.cc:43: `mysql_connect' undeclared (first use this function)
    sql-mysql.cc:43: (Each undeclared identifier is reported only once for each
       function it appears in.)
    sql-mysql.cc: At global scope:
    sql-mysql.cc:74: default argument given for parameter 1 of `int
       Sql_mysql::numRows(int = 0)'
    sql-mysql.h:29: after previous specification in `virtual int
       Sql_mysql::numRows(int = 0)'
    sql-mysql.cc:112: default argument given for parameter 1 of `void
       Sql_mysql::endquery(int = 0)'
    sql-mysql.h:30: after previous specification in `virtual void
       Sql_mysql::endquery(int = 0)'
    sql-mysql.cc:123: default argument given for parameter 1 of `Sql_row*
       Sql_mysql::fetchrow(int = 0)'
    sql-mysql.h:31: after previous specification in `virtual Sql_row*
       Sql_mysql::fetchrow(int = 0)'
    make: *** [obj/sql-mysql.o] Error 1

    both systems are using gcc 3.2.x
    anyhelp would be GREATLY appreciated.. I really need tcl-sql or else rewrite all my scripts : tons of them.

     
    • Tobias Lauszat

      Tobias Lauszat - 2004-03-09

      I'm also using gcc3.2.2 and i have the same problem. At least it seems so. Would also be happy for any help.

      Greets
      Lausi

      My output:

      [root@host tcl-sql]# gcc --version
      gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
      Copyright (C) 2002 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      [root@host tcl-sql]# make
      g++ -c -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC  -Wall -o obj/sql-mysql.o sql-mysql.cc
      sql-mysql.cc:74: default argument given for parameter 1 of `int
         Sql_mysql::numRows(int = 0)'
      sql-mysql.h:29: after previous specification in `virtual int
         Sql_mysql::numRows(int = 0)'
      sql-mysql.cc:112: default argument given for parameter 1 of `void
         Sql_mysql::endquery(int = 0)'
      sql-mysql.h:30: after previous specification in `virtual void
         Sql_mysql::endquery(int = 0)'
      sql-mysql.cc:123: default argument given for parameter 1 of `Sql_row*
         Sql_mysql::fetchrow(int = 0)'
      sql-mysql.h:31: after previous specification in `virtual Sql_row*
         Sql_mysql::fetchrow(int = 0)'
      make: *** [obj/sql-mysql.o] Error 1
      [root@host tcl-sql]#

       
    • mark

      mark - 2004-06-21

      I running mysql version 4.0.18 with redjack unix.  When trying to compile I recieve the following error,  any help would be greatly appreciated:

      gcc -c -I /usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include -fPIC  -Wall -o obj/sql-mysql.o sql-mysql.cc
      sql-mysql.cc: In member function `virtual char* Sql_mysql::getErrorMsg()':
      sql-mysql.cc:23: error: invalid conversion from `const char*' to `char*'
      sql-mysql.cc: In member function `virtual int Sql_mysql::connect(int, char**)':
      sql-mysql.cc:43: error: `mysql_connect' undeclared (first use this function)
      sql-mysql.cc:43: error: (Each undeclared identifier is reported only once for each function it appears in.)
      sql-mysql.cc: At global scope:
      sql-mysql.cc:74: error: default argument given for parameter 1 of `int Sql_mysql::numRows(int)'
      sql-mysql.h:29: error: after previous specification in `virtual int Sql_mysql::numRows(int)'
      sql-mysql.cc:112: error: default argument given for parameter 1 of `void Sql_mysql::endquery(int)'
      sql-mysql.h:30: error: after previous specification in `virtual void Sql_mysql::endquery(int)'
      sql-mysql.cc:123: error: default argument given for parameter 1 of `Sql_row* Sql_mysql::fetchrow(int)'
      sql-mysql.h:31: error: after previous specification in `virtual Sql_row* Sql_mysql::fetchrow(int)'
      make: *** [obj/sql-mysql.o] Error 1

       
    • Miguel Simőes

      Miguel Simőes - 2004-10-23

      Well, it seems like this is a dead project...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.