All pastes #562373 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-12 19:34 UTC
rendered paste body
cc -o database_mysql.o -c -W -Wall -Werror -std=c99 -pedantic -D_POSIX_SOURCE -I. -O2 `mysql_config --cflags` -g database_mysql.c
database_mysql.c:29: error: parse error before '*' token
database_mysql.c: In function `mysql_stmt_error_log':
database_mysql.c:30: error: `error' undeclared (first use in this function)
database_mysql.c:30: error: (Each undeclared identifier is reported only once
database_mysql.c:30: error: for each function it appears in.)
database_mysql.c:30: warning: implicit declaration of function `mysql_stmt_error'
database_mysql.c:30: error: `stmt' undeclared (first use in this function)
database_mysql.c:30: warning: format argument is not a pointer (arg 4)
database_mysql.c: In function `insert_program_key':
database_mysql.c:36: error: `MYSQL_STMT' undeclared (first use in this function)
database_mysql.c:36: error: `stmt' undeclared (first use in this function)
database_mysql.c:37: error: `MYSQL_BIND' undeclared (first use in this function)
database_mysql.c:37: error: parse error before "bind"
database_mysql.c:52: warning: implicit declaration of function `mysql_stmt_init'
database_mysql.c:56: warning: implicit declaration of function `mysql_stmt_prepare'
database_mysql.c:59: warning: implicit declaration of function `mysql_stmt_param_count'
database_mysql.c:64: error: `bind' undeclared (first use in this function)
database_mysql.c:66: error: `MYSQL_TYPE_BLOB' undeclared (first use in this function)
database_mysql.c:85: warning: implicit declaration of function `mysql_stmt_bind_param'
database_mysql.c:89: warning: implicit declaration of function `mysql_stmt_execute'
database_mysql.c:93: warning: implicit declaration of function `mysql_stmt_close'
database_mysql.c: In function `get_program_key':
database_mysql.c:102: error: `MYSQL_STMT' undeclared (first use in this function)
database_mysql.c:102: error: `stmt' undeclared (first use in this function)
database_mysql.c:103: error: `MYSQL_BIND' undeclared (first use in this function)
database_mysql.c:103: error: parse error before "in_bind"
database_mysql.c:105: error: parse error before "out_bind"
database_mysql.c:138: warning: implicit declaration of function `mysql_stmt_result_metadata'
database_mysql.c:138: warning: assignment makes pointer from integer without a cast
database_mysql.c:147: error: `in_bind' undeclared (first use in this function)
database_mysql.c:149: error: `MYSQL_TYPE_BLOB' undeclared (first use in this function)
database_mysql.c:164: error: `out_bind' undeclared (first use in this function)
database_mysql.c:180: warning: implicit declaration of function `mysql_stmt_bind_result'
database_mysql.c:184: warning: implicit declaration of function `mysql_stmt_store_result'
database_mysql.c:188: warning: implicit declaration of function `mysql_stmt_fetch'
make: *** [database_mysql.o] Error 1