dokladnie to zglasza mi takie bledy:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall mysqlpp::Connection::~Connection(void)" (__imp_??1Connection@mysqlpp@@UAE@XZ) referenced in function _main
baza.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall mysqlpp::Connection::connect(char const *,char const *,char const *,char const *,unsigned int,char,unsigned int,char const *,unsigned int)" (__imp_?connect@Connection@mysqlpp@@QAE_NPBD000IDI0I@Z) referenced in function _main
baza.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall mysqlpp::Connection::Connection(bool)" (__imp_??0Connection@mysqlpp@@QAE@_N@Z) referenced in function _main
to jest dalsza bajka przebijania sie przez mysql++ i zastanawiam sie gdzie lezy problem:( moj kod to:
#include "stdafx.h"
//using namespace mysqlpp;
int _tmain(int argc, _TCHAR* argv[])
{
// Connect to the sample database.
mysqlpp::Connection con(false);
if (!con.connect("baza", //db name
"localhost", //host
"root", //user
"pass", //pass
3309) //port
)
{
return 1;
}
return 0;
}
a w "stdafx.h"
jest umieszczony naglowek mysql++.h
przeszukalem forum ale nie moglem znaleŹĆ podobnego bledu:(