dbTalk Databases Forums  

Linker error: unresolved external symbol (2.1.1)

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


Discuss Linker error: unresolved external symbol (2.1.1) in the mailing.database.mysql-plusplus forum.



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

Default Linker error: unresolved external symbol (2.1.1) - 04-12-2006 , 10:13 AM






Hi,
I tried to build the dll using MsVs7.1 and the given vc workspace, but
I got a linker error:

Linking...
Creating library Release\mysqlpp.lib and object Release\mysqlpp.exp
connection.obj : error LNK2019: unresolved external symbol _mysql_shutdown@4
referenced in function "public: bool __thiscall
mysqlpp::Connection::shutdown(void)" (?shutdown@Connection@mysqlpp@@QAE_NXZ)
Release\mysqlpp.dll : fatal error LNK1120: 1 unresolved externals

What I have to do to fix this?



--
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
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Linker error: unresolved external symbol (2.1.1) - 04-13-2006 , 06:43 AM






Roi wrote:
Quote:
connection.obj : error LNK2019: unresolved external symbol _mysql_shutdown@4
@4 implies that it's compiled to expect the old mysql_shutdown()
signature, but not finding it in the library. Is there any chance you
have mixed library and header files, with the headers coming from
earlier than v4.1.3 and the library coming from that version or later?

--
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
  #3  
Old   
Roi
 
Posts: n/a

Default Re: Linker error: unresolved external symbol (2.1.1) - 04-13-2006 , 07:05 AM



Yes. Mea culpa. Thx a lot!


"Warren Young" <mysqlpp (AT) etr-usa (DOT) com> píse v diskusním príspevku
news:443E3969.7050908 (AT) etr-usa (DOT) com...
Quote:
Roi wrote:
connection.obj : error LNK2019: unresolved external symbol
_mysql_shutdown@4

@4 implies that it's compiled to expect the old mysql_shutdown()
signature, but not finding it in the library. Is there any chance you
have mixed library and header files, with the headers coming from earlier
than v4.1.3 and the library coming from that version or later?


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