Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

VS 2017 Community (no replies)

$
0
0
So I have been revisiting C++ and started back using VS 2017 Community. So I decided to step out and try to connect to MySQL. Wow, this was not like using C# to setup.

So I followed the instructions downloaded Boost 1.65 and worked my way through the instructions to setup my project so that I could (hopefully) use MySQL in upcoming C++ projects.

So the first question I have is that it will not run and I haven't even tried to 'do' anything yet:

#include <iostream>
#include <mysql_connection.h>
#include <mysql_driver.h>
#include <mysql_error.h>

using namespace std;

void main() {
// create a connection
sql::mysql::MySQL_Driver *driver;
sql::Connection *con;

driver = sql::mysql::get_mysql_driver_instance();


system("PAUSE");
}

yields an intimidating list of errors starting with a bunch of:
"LINK2038 mismatch detected for '_MSC_VER': value '1800' doesn't match value '1900' in tester.obj (for MySQL_driver.obj on through a litany of other obj files)

The other question or concern I have is if I even get this working, will my users have to go through and install all of these dependencies as well or will I be able to deploy / copy the dll file for MySQL connector? I mean that would really be a tragic user experience.

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>