I have the following code
#include #include int main(int argc, char **argv) { printf(\"MySQL client version: %s\\n\",
I come across the same error today, turn out that I forget to install package libmysqlclient-dev. After I install it with
libmysqlclient-dev
sudo apt install libmysqlclient-dev
the error went away.