Windows/Visual Studio 2015上でMySQL Connector C++をコンパイルしようとしています。 official instructionsに従ってCMakeを使用してプロジェクトファイルを生成しました。私は解決策をコンパイルしようとする今、私は次のリンカエラーを取得:それらの64 theresの:あなたはカウントしたくない場合はMySQL C++ Connector未解決の依存関係(VS 2015)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::library_init(int,char * *,char * *)" ([email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::library_end(void)" ([email protected]@[email protected]@[email protected]@UAEXXZ)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::thread_init(void)" ([email protected]@[email protected]@[email protected]@UAEXXZ)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::thread_end(void)" ([email protected]@[email protected]@[email protected]@UAEXXZ)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned __int64 __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::num_rows(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::num_fields(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_field * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::fetch_field_direct(struct st_mysql_res *,unsigned int)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::field_count(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned __int64 __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::affected_rows(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::mysql_errno(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::error(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::sqlstate(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::warning_count(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::info(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::init(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::ssl_set(struct st_mysql *,char const *,char const *,char const *,char const *,char const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::real_connect(struct st_mysql *,char const *,char const *,char const *,char const *,unsigned int,char const *,unsigned long)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::query(struct st_mysql *,char const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::real_query(struct st_mysql *,char const *,unsigned long)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_res * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::store_result(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_res * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::use_result(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::get_character_set_info(struct st_mysql *,void *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::ping(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::get_server_info(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned long __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::get_client_version(void)" ([email protected]@[email protected]@[email protected]@UAEKXZ)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned long __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::get_server_version(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::options(struct st_mysql *,enum mysql_option,void const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::options(struct st_mysql *,enum mysql_option,void const *,void const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::get_option(struct st_mysql *,enum mysql_option,void const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::free_result(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::data_seek(struct st_mysql_res *,unsigned __int64)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char * * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::fetch_row(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned long * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::fetch_lengths(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_field * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::fetch_field(struct st_mysql_res *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned long __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::real_escape_string(struct st_mysql *,char *,char const *,unsigned long)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::debug(char const *)" ([email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_stmt * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_init(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_prepare(struct st_mysql_stmt *,char const *,unsigned long)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_execute(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_fetch(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_store_result(struct st_mysql_stmt *)" ([email protected][email protected]@[email protected]@@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned long __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_param_count(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_attr_set(struct st_mysql_stmt *,enum enum_stmt_attr_type,void const *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_bind_param(struct st_mysql_stmt *,struct st_mysql_bind *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_bind_result(struct st_mysql_stmt *,struct st_mysql_bind *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_close(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_free_result(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_send_long_data(struct st_mysql_stmt *,unsigned int,char const *,unsigned long)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual struct st_mysql_res * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_result_metadata(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_errno(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_error(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char const * __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_sqlstate(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@UAEPBDPAUst_[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_data_seek(struct st_mysql_stmt *,unsigned __int64)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned __int64 __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_num_rows(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned __int64 __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_affected_rows(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual unsigned int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_field_count(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::commit(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::rollback(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::autocommit(struct st_mysql *,char)" ([email protected]@[email protected]@[email protected]@[email protected]@[email protected])
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual char __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::more_results(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::next_result(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual int __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::stmt_next_result(struct st_mysql_stmt *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
5>mysqlcppconn-static.lib(mysql_client_api.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall sql::mysql::NativeAPI::LibmysqlStaticProxy::close(struct st_mysql *)" ([email protected]@[email protected]@[email protected]@[email protected]@@Z)
。 64ビットバージョンのC++コネクタソースと32ビットバージョンのCコネクタをインストールしたので、Cコネクタ64ビットをインストールし、リンカエラーを正確に2倍にしました(128)。
私は両方をアンインストールして両方の32ビット版をインストールしましたが、上記のエラーだけに戻るためです。
私は同じ問題を抱えている人々によってそこにたくさんの質問があることを知っていますが、私を助けてくれる人が見つからなかったり、誰もいない人がいます。
私が修正プログラムに向けることができれば、それはすばらしいでしょう。お時間を
おかげ