MySQL Forums :: Connector/C++ :: Error strncmp and SQLResult

Advanced Search

Error strncmp and SQLResult
Posted by: kov Undefined ()
Date: July 24, 2012 12:00PM

error LNK2019: unresolved external symbol "__declspec(dllimport) char const `private: static char const * __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::_Nullstr(void)'::`2'::_C" (__imp_?_C@?1??_Nullstr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@CAPBDXZ@4DB) referenced in function "int __cdecl ClientConnectPost(struct edict_s *,char const *,char const *,char * const)" (?ClientConnectPost@@YAHPAUedict_s@@PBD1QAD@Z)

sql::Driver *driver;
sql::Connection *dcon;
sql::Statement *dstmt;
sql::ResultSet *res;

driver = get_driver_instance();
dcon = driver->connect( hostname, usrname, pass);
dstmt = dcon->createStatement();
res = dstmt->executeQuery("SELECT id FROM list ORDER BY ID ASC");

String result;
result = res->getString("id")->c_str();

while( res->next())
if( !strncmp(result.c_str(), pPlayer->host_name.c_str(), pPlayer->host_name.size()))

delete res;
delete dstmt;
delete dcon;
catch (sql::SQLException &e)
LOG_ERROR(PLID, "Could't Check List");

Edited 2 time(s). Last edit at 07/25/2012 02:05PM by kov Undefined.

Options: ReplyQuote

Subject Views Written By Posted
Error strncmp and SQLResult 1883 kov Undefined 07/24/2012 12:00PM
Re: Error strncmp and SQLResult 1049 Andrii Nikitin 08/02/2012 09:09AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.