One problem that can occur is when the tools you use to build your application are not compatible with the tools used to build the binary versions of MySQL Connector/C++. Ideally you need to build your application with the same tools that were used to build the MySQL Connector/C++ binaries. To help with this the following resources are provided.
All distributions contain a README
file,
which contains platform-specific notes. At the end of the
README
file contained in the binary
distribution you will find the settings used to build the
binaries. If you experience build-related issues on a platform,
it may help to check the settings used on the platform to build
the binary.
For your convenience the same information, but more frequently updated, can be found on the MySQL Forge site.
A better solution is to build your MySQL Connector/C++ libraries from the source code, using the same tools that you use for building your application. This ensures compatibility.
Downloading MySQL Connector/C++
Binary and source packages can be obtained from MySQL Connector/C++ downloads.
Archive Package
Unpack the archive into an appropriate directory. If you plan to use a dynamically linked version of MySQL Connector/C++, make sure that your system can reference the MySQL Client Library. Consult your operating system documentation on how do modify and expand the search path for libraries. In case you cannot modify the library search path it may help to copy your application, the MySQL Connector/C++ library and the MySQL Client Library into the same directory. Most systems search for libraries in the current directory.
Windows MSI Installer
Windows users can choose between two binary packages:
Without installer (unzip in C:\)
Windows MSI Installer (x86)
Using the MSI Installer may be the easiest solution. Running the MSI Installer does not require any administrative permissions as it simply copies files.
The “Typical” installation consists of all required header files and the Release libraries. The only available “Custom” installation option allows you to install additional Debug versions of the connector libraries.
User Comments
Add your own comment.