dbTalk Databases Forums  

mysql++ linking problem

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss mysql++ linking problem in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kamiseq
 
Posts: n/a

Default mysql++ linking problem - 01-30-2006 , 10:23 AM






hi,
i tried to run firs example from tutorial(that i found shit at the
begining), im using VC++ from VS 2003, and last version of mysql

so i put:
------------------------------------------------------------
#include "stdafx.h"

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;
}
------------------------------------------------------------
in "stdafx.h" is mysql++.h included

ok. what i got is

------------------------------------------------------------
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_NPBD000IDI 0I@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
------------------------------------------------------------
there is a lot of it, and i have no clue where mistake can be:|

i know it isn't VC++ mailing list but still it is first time when
i have such a errors!(and first time that i use mailing list

cheers kamis.

Paweł Kamiński
[kamiseq]
[namiar]
- skype: kamiseq
- gg: 2370552
- www.kamis.jz.pl
- hokam (AT) wp (DOT) pl
[pozdrowienia z krakowa]


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.