Я пытаюсь установить соединение с базой данных MySQL. Код компилируется нормально, но при компоновке я всегда получаю ошибки. Я пробовал оба соединения Dynami c и Stati c, но ничего не работает. Некоторые из ошибок:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall mysqlx::abi2::r0::Error::Error(char const *)" (__imp_??0Error@r0@abi2@mysqlx@@QAE@PBD@Z) referenced in function "protected: void __thiscall mysqlx::abi2::r0::Value::check_type(enum mysqlx::abi2::r0::Value::Type)const " (?check_type@Value@r0@abi2@mysqlx@@IBEXW4Type@1234@@Z) DatabaseTest
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall mysqlx::abi2::r0::DbDoc::~DbDoc(void)" (__imp_??1DbDoc@r0@abi2@mysqlx@@QAE@XZ) referenced in function "public: __thiscall mysqlx::abi2::r0::Value::~Value(void)" (??1Value@r0@abi2@mysqlx@@QAE@XZ) DatabaseTest
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "__declspec(dllimport) public: __thiscall mysqlx::abi2::r0::DbDoc::DbDoc(void)" (__imp_??0DbDoc@r0@abi2@mysqlx@@QAE@XZ) referenced in function "public: __thiscall mysqlx::abi2::r0::Value::Value(void)" (??0Value@r0@abi2@mysqlx@@QAE@XZ) DatabaseTest
#include <iostream>
#include "mysqlx/xdevapi.h"
int main()
{
//short test, program doesn't compile, the headers aren't included here because they are more than 1000 lines long. You can get them at the MySQL homepage
return 0;
}
Я использую новейшую версию разъема. Вы можете скачать проект здесь , если хотите проверить настройки. У кого-нибудь есть идея?