I was able to get the program listed here http://dev.mysql.com/doc/refman/5.1/en/connector-cpp-examples-complete-example-1.html to compile and link with VC++ 2012, but the program won't run. Get the error message "The application was unable to start correctly (address here) Click OK to close the application)." I copied libmysql.dll and mysqlcppconn.dll into the same folder as the program executable. I get the same error in both debug and release builds.
I have the MySQL database server running on a different computer than the one I am using to build the application program. I copied libmysql.lib from that other computer so that my program could link. Could that be the problem? I am using the 32-bit version of the server instead of the 64-bit version.
I have the MySQL database server running on a different computer than the one I am using to build the application program. I copied libmysql.lib from that other computer so that my program could link. Could that be the problem? I am using the 32-bit version of the server instead of the 64-bit version.