MySQL Forums
Forum List  »  Connector/C++

Re: Link error with mysqlcppconn-static.lib on Visual C++ 2005 with v1.0.3
Posted by: Lawrin Novitsky
Date: March 05, 2009 04:38AM

I am afraid that's not documented anywhere... For linking against static lib you need to define CPPDBC_PUBLIC_FUNC either in compiler options(probably preferable) with /D "CPPCONN_PUBLIC_FUNC=" or explicitly in your code before C/C++ header(s) inclusion with #include CPPCONN_PUBLIC_FUNC. That should help.
regards,
lawrin

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Link error with mysqlcppconn-static.lib on Visual C++ 2005 with v1.0.3
2733
March 05, 2009 04:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.