Hello, I have been working with the C API in version 4.1.1. I encountered a problem which I thought might be resolved in version 5.0.0, so I have loaded the RPMs for version 5.0.0 onto my development RedHat Linux system. --------------------------------------------------------- Problem 1 - can't link: According to documentation, many of the names of prepared statement functions have changed in version 5.0.0. I changed my C code to use the new names, but when I try to link, all of the new names are not found in the libraries. Here are some sample error message:
sql.o: In function `MYSQL_ADD_PREP': sql.o(.text+0x1ac3): undefined reference to `mysql_stmt_init' sql.o(.text+0x1b2e): undefined reference to `mysql_stmt_prepare' sql.o(.text+0x1b7a): undefined reference to `mysql_stmt_result_metadata' sql.o(.text+0x1db6): undefined reference to `mysql_stmt_init' sql.o(.text+0x1e22): undefined reference to `mysql_stmt_prepare' sql.o(.text+0x1e6e): undefined reference to `mysql_stmt_param_count' sql.o(.text+0x2127): undefined reference to `mysql_stmt_bind_param' I had all of this working with version 4.1.1, except that I had a problem trying to use two different prepared statements alternately. --------------------------------------------------------- Problem 2 - mysql_stmt_result_metadata() returns int. According to documentation, this function should return a pointer to MYSQL_RES. In version 4.1.1, the previous function - named mysql_get_metadata - did work that way. But now I get a warning when I compile saying: coresql.c:183: warning: assignment makes pointer from integer without a cast --------------------------------------------------------- Is there something I am missing, or is this version not well tested for these features? Is anyone using this? Thanks, Ken -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]