2
rated 0 times
[
2]
[
0]
/ answers: 1 / hits: 10329
/ 2 Years ago, thu, january 20, 2022, 2:37:25
I have the following code
#include <my_global.h>
#include <mysql.h>
int main(int argc, char **argv)
{
printf("MySQL client version: %s
", mysql_get_client_info());
exit(0);
}
when i try to compile it using
gcc mysqldb.c -o mysql -I/usr/include/mysql -lmysqlclient
i get an error saying fatal error mysql.h:No such file or directory. how can i successfully compile and run the code
More From » compiling