Hello list...

Am developing an application with mysql support and it works fine, but today 
changed from 3.23 (deinstalled completely) to 4.0.14 and when recompiling my 
program get the following errors:

-------------------------------------------------------------------
/usr/include/voodoo2/mysql/mysql.cpp: In member function `int
   MYSQL_V::CreateDatabase(char*)':
/usr/include/voodoo2/mysql/mysql.cpp:54: `mysql_create_db' undeclared (first
   use this function)
/usr/include/voodoo2/mysql/mysql.cpp:54: (Each undeclared identifier is
   reported only once for each function it appears in.)
/usr/include/voodoo2/mysql/mysql.cpp: In member function `int
   MYSQL_V::DropDatabase(char*)':
/usr/include/voodoo2/mysql/mysql.cpp:62: `mysql_drop_db' undeclared (first use
   this function)
-------------------------------------------------------------------

I performed a 'grep mysql_create_db' /usr/local/mysql/include' thinking that 
the api could change, but it is exactly the same as in 3.23 so I don't 
understand why that error...

the source code is the following:

-------------------------------------------------------------------
/* mysql_v.cpp */
#include "mysql_v.h"
...
int MYSQL_V::CreateDatabase (char* database) {
   return mysql_create_db(&sql_handle,database);
}
int MYSQL_V::DropDatabase (char* database) {
   return mysql_drop_db(&sql_handle,database);
}
...
-------------------------------------------------------------------

Note that my code contains "mysql.h" from the MySQL distribution include's 
directory. All other C API functions are fine compiled except 
mysql_create_db() and mysql_drop_db()...

Anybody has idea of what can be wrong? the same code compiles and works fine 
on MySQL 3.23 but when trying on 4.0 results on that error...

Am using mysql-standard-4.0.14-pc-linux-i686.tar.gz

Thanx a lot!!!


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to