Errors:
1> Creating library .\Release/testing_mm.lib and object.\Release/testing_mm.exp
1>testing_mm.obj : error LNK2019: unresolved external symbol"__declspec(dllimport) public: __thiscallsql::SQLString::~SQLString(void)" (__imp_??1SQLString@sql@@QAE@XZ)referenced in function "void __cdecl _sql_log(char const *,charconst *,char const *)" (?_sql_log@@YAXPBD00@Z)
1>testing_mm.obj : error LNK2019: unresolved external symbol"__declspec(dllimport) public: __thiscall sql::SQLString::SQLString(charconst * const)" (__imp_??0SQLString@sql@@QAE@QBD@Z) referenced infunction "void __cdecl _sql_log(char const *,char const *,charconst *)" (?_sql_log@@YAXPBD00@Z)
1>testing_mm.obj : error LNK2019: unresolved external symbol__imp__get_driver_instance referenced in function "void __cdecl_sql_log(char const *,char const *,char const *)"(?_sql_log@@YAXPBD00@Z)
1>.\Release/testing_mm.dll : fatal error LNK1120: 3 unresolvedexternals
Code:
void _sql_log ( const char *id, const char *addr, const char*_bid)
{
sql::Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
sql::PreparedStatement *preps;
try
{
driver = get_driver_instance();
con = driver->connect( hostname, usrname, pass);
con->setSchema(database);
stmt = con->createStatement();
preps = con->prepareStatement("INSERT INTO dev_list(name, address, bid) VALUES (?,?,?)");
preps->setString(1, id);
preps->setString(2, addr);
preps->setString(3, _bid);
preps->executeUpdate();
delete preps;
delete stmt;
delete con;
}
catch(sql::SQLException &e){
LOG_ERROR (PLID, "Error Could Not Log Banned");
RETURN_META(MRES_SUPERCEDE);
}
RETURN_META(MRES_SUPERCEDE); // and return
}
1> Creating library .\Release/testing_mm.lib and object.\Release/testing_mm.exp
1>testing_mm.obj : error LNK2019: unresolved external symbol"__declspec(dllimport) public: __thiscallsql::SQLString::~SQLString(void)" (__imp_??1SQLString@sql@@QAE@XZ)referenced in function "void __cdecl _sql_log(char const *,charconst *,char const *)" (?_sql_log@@YAXPBD00@Z)
1>testing_mm.obj : error LNK2019: unresolved external symbol"__declspec(dllimport) public: __thiscall sql::SQLString::SQLString(charconst * const)" (__imp_??0SQLString@sql@@QAE@QBD@Z) referenced infunction "void __cdecl _sql_log(char const *,char const *,charconst *)" (?_sql_log@@YAXPBD00@Z)
1>testing_mm.obj : error LNK2019: unresolved external symbol__imp__get_driver_instance referenced in function "void __cdecl_sql_log(char const *,char const *,char const *)"(?_sql_log@@YAXPBD00@Z)
1>.\Release/testing_mm.dll : fatal error LNK1120: 3 unresolvedexternals
Code:
void _sql_log ( const char *id, const char *addr, const char*_bid)
{
sql::Driver *driver;
sql::Connection *con;
sql::Statement *stmt;
sql::PreparedStatement *preps;
try
{
driver = get_driver_instance();
con = driver->connect( hostname, usrname, pass);
con->setSchema(database);
stmt = con->createStatement();
preps = con->prepareStatement("INSERT INTO dev_list(name, address, bid) VALUES (?,?,?)");
preps->setString(1, id);
preps->setString(2, addr);
preps->setString(3, _bid);
preps->executeUpdate();
delete preps;
delete stmt;
delete con;
}
catch(sql::SQLException &e){
LOG_ERROR (PLID, "Error Could Not Log Banned");
RETURN_META(MRES_SUPERCEDE);
}
RETURN_META(MRES_SUPERCEDE); // and return
}