MySQL Forums
Forum List  »  Connector/C++

Re: Link error with mysqlcppconn-static.lib on Visual C++ 2005
Posted by: Myeongho AN
Date: December 29, 2008 09:40PM

I tried to compile by your advice. but so many error was occured.

I modified two files that is driver.h and connection.h on the cppconn folder.

from
#if defined(_WIN32)
#ifdef CPPDBC_EXPORTS
#define CPPDBC_PUBLIC_FUNC __declspec(dllexport)
#else
#define CPPDBC_PUBLIC_FUNC __declspec(dllimport)
#endif
#else
#define CPPDBC_PUBLIC_FUNC
#endif
to
#if defined(_WIN32)
#ifdef CPPDBC_EXPORTS
#define CPPDBC_PUBLIC_FUNC __declspec(dllexport)
#else
#define CPPDBC_PUBLIC_FUNC __declspec(dllimport)
#endif
#else
#define CPPDBC_PUBLIC_FUNC
#endif
#define CPPDBC_PUBLIC_FUNC // added for static library

but, compile was fail.

please, give me more advice.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Link error with mysqlcppconn-static.lib on Visual C++ 2005
3484
December 29, 2008 09:40PM


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.