Set project to release x64
C/C++->General->Additional Include Directories:
C:\Program Files\MySQL\Connector C++ 8.0\include
Linker->General->Additional Library Directories:
C:\Program Files\MySQL\Connector C++ 8.0\lib64\vs14
#include <iostream>
#include <mysqlx/xdevapi.h>
int main()
{
mysqlx::Session sess("localhost", 3306, "root", "password");
mysqlx::Schema db = sess.getSchema("schema_name");
std::getchar();
}
when running my program, I get the error:
C:\Users\Conor\source\repos\mysql_test\x64\Release\mysql_test.exe (process 26464) exited with code -1073740791.
Press any key to close this window . . .
C/C++->General->Additional Include Directories:
C:\Program Files\MySQL\Connector C++ 8.0\include
Linker->General->Additional Library Directories:
C:\Program Files\MySQL\Connector C++ 8.0\lib64\vs14
#include <iostream>
#include <mysqlx/xdevapi.h>
int main()
{
mysqlx::Session sess("localhost", 3306, "root", "password");
mysqlx::Schema db = sess.getSchema("schema_name");
std::getchar();
}
when running my program, I get the error:
C:\Users\Conor\source\repos\mysql_test\x64\Release\mysql_test.exe (process 26464) exited with code -1073740791.
Press any key to close this window . . .