dbTalk Databases Forums  

Problems linking my project with mysql++

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


Discuss Problems linking my project with mysql++ in the mailing.database.mysql-plusplus forum.



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

Default Problems linking my project with mysql++ - 03-06-2005 , 05:36 AM






------=_NextPart_000_0000_01C52249.29150E90
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

When trying to use mysql++ in my project I get the following linking error:



error LNK2019: unresolved external symbol _mysql_init@4 referenced in
function "public: __thiscall mysqlpp::Connection::Connection(void)"
(??0Connection@mysqlpp@@QAE@XZ)



I'm using VS.NET and I have added paths for mysql++.lib and for sqlplus.hh
and also specified the mysql++.lib library. Have I forgot something?


------=_NextPart_000_0000_01C52249.29150E90--



Reply With Quote
  #2  
Old   
Earl Miles
 
Posts: n/a

Default Re: Problems linking my project with mysql++ - 03-06-2005 , 10:53 AM






Joachim Person wrote:
Quote:
When trying to use mysql++ in my project I get the following linking error:



error LNK2019: unresolved external symbol _mysql_init@4 referenced in
function "public: __thiscall mysqlpp::Connection::Connection(void)"
(??0Connection@mysqlpp@@QAE@XZ)



I'm using VS.NET and I have added paths for mysql++.lib and for sqlplus.hh
and also specified the mysql++.lib library. Have I forgot something?


mysql_init is part of the mysql package; be sure you're linking against
the mysql library too. I think I saw that, under Windows, it's mysql.dll
or something like that.

--
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.