Автор: exp (17.08.2009 в 22:12)
Непроверял, и слабо понимаю по английски, но возможно чтобы вписать mysqlcppconn-static.lib в зависимости
предлагается ещё вписать строку ниже имеющихся
CPPCONN_PUBLIC_FUNC=
там где
-> C/C++ -> Препроцессор -> Определения препроцессора
3 By default CPPCONN_PUBLIC_FUNC is defined to declare functions to be compatible
with an application that calls a DLL. If building an application to call the static library,
you must ensure that function prototypes are compatible with this.
In this case CPPCONN_PUBLIC_FUNC needs to be defined to be an empty string,
so that functions are declared with the correct prototype.
In the Project, Properties tree view, under C++, Preprocessor
, enter CPPCONN_PUBLIC_FUNC= into the Preprocessor Definitions text field.
Note
Make sure you enter CPPCONN_PUBLIC_FUNC= and not CPPCONN_PUBLIC_FUNC,
as it needs to be defined as an empty string.
И дальше ещё какие-то записи
If building an application to use the MySQL Connector/C++ dynamically linked library carry out these steps:
Under Linker, Input, add mysqlcppconn.lib into the Additional Dependencies text field.
The application will need to access the MySQL Connector/C++ Dynamic Linked Library at run time.
Therefore, mysqlcppconn.dll needs to be in the same directory as the application executable,
or somewhere on the system's path.
Copy mysqlcppconn.dll to the same directory as the application
. Alternatively, extend the PATH environment variable using SET PATH=%PATH%;C:\path\to\cpp.
Alternatively, you can copy mysqlcppconn.dll to the Windows installation Directory, typically c:\windows.