Hi there,
I'm trying to connect a mysql database from a c program.
Program begin like this:
When I compile:
This error is displayed:
I had try to install (that actually I don't know if has someting to do whit this)
libmysqlclient-dev
Here is all code :
Now, I'm totally lost. I really don't know what do I have to do to connect my program with a mysql database
Any help will be very appreciated !
Thanks in advance for any feedback
Regards
Agunet74
I'm trying to connect a mysql database from a c program.
Program begin like this:
Code:
#include <stdio.h>
#include <stdlib.h>
#include <mysql.h>
void main(void){
Code:
cc -c myprogram.c
Code:
q.c:3:10: fatal error: mysql.h: No such file or directory
#include <mysql.h>
^~~~~~~~~
libmysqlclient-dev
Here is all code :
Code:
brownie:~ # apt-get install libmysqlclient-dev
Loading repository data...
Reading installed packages...
'libmysqlclient-devel' not found in package names. Trying capabilities.
'libmariadb-devel' providing 'libmysqlclient-devel' is already installed.
Resolving package dependencies...
Now, I'm totally lost. I really don't know what do I have to do to connect my program with a mysql database
Any help will be very appreciated !
Thanks in advance for any feedback
Regards
Agunet74