Mysql help with c++

Hi guys im having trouble with setting up mysql in devc++ i already have mysql installed cuz ive used it with php but i cant seem to get it to run in c+++ here's my code
#include <my_global.h>
#include <mysql.h>

int main(int argc, char **argv)
  printf("MySQL client version: %s\n", mysql_get_client_info());

and all i get is a bunchof errors. does anyone know of a good mysql tutorial using c++?
I've recently started using MySQL. There is more than one C++ binding and as far as I can tell, none are worth learning.

I suggest you use the C binding. There's only one. It's standard. It makes sense. None of these apply to abny of the C++ bindings I've seen.

MySQL really is a poor cousin.
I suggest you use the C binding.

ok thank you very much but are there any tutorials that teach you how to us this"c binding" and what is a c binding
There are many tutorials on how to use MySQL from C.

The C binding is what I call the C interface to MySQL. Once you understand it, you could probably even write your own wrapper. Heavens knows it can't be any worse than the one out there.
Last edited on
lol thank you very much so where could i download the c binding from
Topic archived. No new replies allowed.