dbTalk Databases Forums  

Re: Unresolved symbols in Query (Lockable)

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


Discuss Re: Unresolved symbols in Query (Lockable) in the mailing.database.mysql-plusplus forum.



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

Default Re: Unresolved symbols in Query (Lockable) - 04-27-2006 , 04:02 AM






Pedro Lamarão wrote:
Quote:
Compiling my application I get:

sql.obj : error LNK2001: unresolved external symbol "private: virtual
void __thiscall mysqlpp::Query::unlock(void)"
Do the examples build? If so, then there is some difference in the way
you are building your program vs. how the examples get built.

Either study the differences, or let us know the command line you're
trying to use and we'll point the differences out to you.

--
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   
AT
 
Posts: n/a

Default Re: Unresolved symbols in Query (Lockable) - 04-28-2006 , 05:25 AM






Pedro Lamarão wrote:
Quote:
"Query::lock" and "Query::unlock" are really missing the DLL
They're private member functions -- there is no reason why they should
be accessible in the DLL's interface.

Quote:
I tried adding MYSQLPP_EXPORT to Lockable's
members, but that didn't do the trick for me.
If you wanted to try and "fix" this, you'd add MYSQLPP_EXPORT to lock()
and unlock() in query.h, not lockable.h. lockable.h just declares
virtual member functions, it doesn't define anything that could be
exported in the DLL interface.

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