The program needs libmysql.dll It is there under c:\xampp\mysql\lib along with libmysql.lib. In the visual c++ settings I have libmysql.lib added to Linker->Input and I have c:\xampp\mysql\lib added to Linker->Additional Library Directories.

Yet I still get the same error. I've reinstalled xampp. I've copied the dlls to system32 directory. Same error though.