Is it a compiler or a linker error? Perhaps, you forgot to add some .lib or .obj file containing this 'mysql_xxx' family function?