1
回答
mysql5.7.9编译出现问题error: ‘cli_list_fields’ undeclared here (not in a function),怎么办?
【腾讯云】学生服务器套餐10元/月 >>>   
/mnt/data/mysql-5.7.9/sql-common/client.c:2709:4: error: ‘cli_list_fields’ undeclared here (not in a function)
   ,cli_list_fields,                            /* list_fields */
    ^
/mnt/data/mysql-5.7.9/sql-common/client.c:2710:3: error: ‘cli_read_prepare_result’ undeclared here (not in a function)
   cli_read_prepare_result,                     /* read_prepare_result */
   ^
/mnt/data/mysql-5.7.9/sql-common/client.c:2711:3: error: ‘cli_stmt_execute’ undeclared here (not in a function)
   cli_stmt_execute,                            /* stmt_execute */
   ^
/mnt/data/mysql-5.7.9/sql-common/client.c:2712:3: error: ‘cli_read_binary_rows’ undeclared here (not in a function)
   cli_read_binary_rows,                        /* read_binary_rows */
   ^
/mnt/data/mysql-5.7.9/sql-common/client.c:2713:3: error: ‘cli_unbuffered_fetch’ undeclared here (not in a function)
   cli_unbuffered_fetch,                        /* unbuffered_fetch */
   ^
/mnt/data/mysql-5.7.9/sql-common/client.c:2715:3: error: ‘cli_read_statistics’ undeclared here (not in a function)
   cli_read_statistics,                         /* read_statistics */
   ^
/mnt/data/mysql-5.7.9/sql-common/client.c: In function ‘cli_read_query_result’:
/mnt/data/mysql-5.7.9/sql-common/client.c:5087:5: warning: implicit declaration of function ‘handle_local_infile’ [-Wimplicit-function-declaration]
     error= handle_local_infile(mysql,(char*) pos);
     ^
make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o] 错误 1
make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] 错误 2
make: *** [all] 错误 2
举报
joostshao1989
发帖于3年前 1回/595阅
顶部