#include #include int main(int argc, char **argv) { printf(\"MySQL client version: %s\\n\", mysql_get_client_info()); }
You are not linking to the libraries. Use: gcc -llibrarygoeshere -o mysql-test MySQL-Test.c See here for more information about linking with gcc.
gcc -llibrarygoeshere -o mysql-test MySQL-Test.c