Error 1 error LNK2019: unresolved external symbol _mysql_real_connect@32 referenced in function _main Error 2 error LNK2019: unresolved external symbol _mysql_init@4 referenced in function _main<pre lang="xml"><pre>#include "stdafx.h" #include <iostream> #include <conio.h> #include <string> #include <fstream> #include <windows.h> #include <C:\\Program Files\\MySQL\\MySQL Server 5.5\\include\\mysql.h> using namespace std; int main() { MYSQL* conn; conn = mysql_init(NULL); if(mysql_real_connect(conn,"urlock.db.5513143.hostedresource.com","VendorCheck","Reader1234","urlock",0,NULL,0) != 0) cout << "Connected!"; else cout << "Failed!"; return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)