MySQL Forums
Forum List  »  Connector/C++

Re: Link problem when I use mysqlcppconn-static.lib for Visual studio 2005 (x64)
Posted by: Lawrin Novitsky
Date: July 09, 2009 03:10AM

I guess that is because static mfc uses static crt, and c/c++ use dynamic (/MT vs /MD). You are probably getting linking error that some symbol are already defined in msvcr80 or smth like that. You can try to use /NODEFAULTLIB:<nameofthelib>

but maybe it's better to build c/c++ driver from source using /MT compiler flag


Options: ReplyQuote

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.