Answer the question
In order to leave comments, you need to log in
Why doesn't the C code compile with a database connection?
On a remote server (without admin rights) I'm trying to compile such a simple code from the primer:
#include <my_global.h>
#include <mysql.h>
int main(){
MYSQL conn;
mysql_init(&conn);
mysql_real_connect(&conn, "localhost", "user", "passwd", "base", 0, NULL, 0);
mysql_query(&conn, "SELECT * FROM auth");
mysql_close(&conn);
}
Answer the question
In order to leave comments, you need to log in
Most likely, the administrator did not install a package with header files for development.
Specifically, in this case, libmysqlclient-dev is required, as it is called in debian / ubuntu
How to get around? download by hand, decompose locally, edit paths, but here I am not strong.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question