Hi guys,
beginner here, I'm having trouble with my first mysql project. I've downloaded the c++ connector for arm64 and am trying to use it with X DevAPI in my program. But, when building I'm running into the following error message:
FAILED: mysql_test
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=13.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mysql_test.dir/main.cpp.o -o mysql_test && :
Undefined symbols for architecture arm64:
"mysqlx::abi2::r0::common::Settings_impl::Data::init_connection_attr()", referenced from:
mysqlx::abi2::r0::common::Settings_impl::Data::Data() in main.cpp.o
"mysqlx::abi2::r0::string::Impl::from_utf8(mysqlx::abi2::r0::string&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
mysqlx::abi2::r0::string::traits<char>::from_str(mysqlx::abi2::r0::string&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::close()", referenced from:
mysqlx::abi2::r0::internal::Session_detail::~Session_detail() in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::Name_src::Name_src(mysqlx::abi2::r0::Session const&, mysqlx::abi2::r0::string const&)", referenced from:
mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::Session_detail(mysqlx::abi2::r0::common::Settings_impl&)", referenced from:
mysqlx::abi2::r0::Session::Session(mysqlx::abi2::r0::SessionSettings) in main.cpp.o
"mysqlx::abi2::r0::internal::Settings_detail<mysqlx::abi2::r0::internal::Settings_traits>::do_set(std::__1::list<std::__1::pair<int, mysqlx::abi2::r0::Value>, std::__1::allocator<std::__1::pair<int, mysqlx::abi2::r0::Value> > >&&)", referenced from:
void mysqlx::abi2::r0::internal::Settings_detail<mysqlx::abi2::r0::internal::Settings_traits>::set<true, mysqlx::abi2::r0::SessionOption::Enum, char const*&, mysqlx::abi2::r0::SessionOption::Enum&, int&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(mysqlx::abi2::r0::SessionOption::Enum, char const*&, mysqlx::abi2::r0::SessionOption::Enum&, int&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in main.cpp.o
"mysqlx::abi2::r0::internal::Query_src::iterator_next()", referenced from:
mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o
"mysqlx::abi2::r0::internal::Query_src::~Query_src()", referenced from:
mysqlx::abi2::r0::internal::Session_detail::Name_src::~Name_src() in main.cpp.o
"mysqlx::abi2::r0::common::Value::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const", referenced from:
mysqlx::abi2::r0::Value::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in main.cpp.o
construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o
"typeinfo for mysqlx::abi2::r0::common::Value", referenced from:
construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o
typeinfo for mysqlx::abi2::r0::Value in main.cpp.o
"VTT for mysqlx::abi2::r0::common::Value", referenced from:
mysqlx::abi2::r0::common::Value::~Value() in main.cpp.o
"vtable for mysqlx::abi2::r0::DbDoc", referenced from:
mysqlx::abi2::r0::DbDoc::~DbDoc() in main.cpp.o
mysqlx::abi2::r0::DbDoc::DbDoc() in main.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Thank you for any responses:D
beginner here, I'm having trouble with my first mysql project. I've downloaded the c++ connector for arm64 and am trying to use it with X DevAPI in my program. But, when building I'm running into the following error message:
FAILED: mysql_test
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=13.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mysql_test.dir/main.cpp.o -o mysql_test && :
Undefined symbols for architecture arm64:
"mysqlx::abi2::r0::common::Settings_impl::Data::init_connection_attr()", referenced from:
mysqlx::abi2::r0::common::Settings_impl::Data::Data() in main.cpp.o
"mysqlx::abi2::r0::string::Impl::from_utf8(mysqlx::abi2::r0::string&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
mysqlx::abi2::r0::string::traits<char>::from_str(mysqlx::abi2::r0::string&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::close()", referenced from:
mysqlx::abi2::r0::internal::Session_detail::~Session_detail() in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::Name_src::Name_src(mysqlx::abi2::r0::Session const&, mysqlx::abi2::r0::string const&)", referenced from:
mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o
"mysqlx::abi2::r0::internal::Session_detail::Session_detail(mysqlx::abi2::r0::common::Settings_impl&)", referenced from:
mysqlx::abi2::r0::Session::Session(mysqlx::abi2::r0::SessionSettings) in main.cpp.o
"mysqlx::abi2::r0::internal::Settings_detail<mysqlx::abi2::r0::internal::Settings_traits>::do_set(std::__1::list<std::__1::pair<int, mysqlx::abi2::r0::Value>, std::__1::allocator<std::__1::pair<int, mysqlx::abi2::r0::Value> > >&&)", referenced from:
void mysqlx::abi2::r0::internal::Settings_detail<mysqlx::abi2::r0::internal::Settings_traits>::set<true, mysqlx::abi2::r0::SessionOption::Enum, char const*&, mysqlx::abi2::r0::SessionOption::Enum&, int&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&>(mysqlx::abi2::r0::SessionOption::Enum, char const*&, mysqlx::abi2::r0::SessionOption::Enum&, int&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, mysqlx::abi2::r0::SessionOption::Enum&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) in main.cpp.o
"mysqlx::abi2::r0::internal::Query_src::iterator_next()", referenced from:
mysqlx::abi2::r0::Schema::existsInDatabase() const in main.cpp.o
"mysqlx::abi2::r0::internal::Query_src::~Query_src()", referenced from:
mysqlx::abi2::r0::internal::Session_detail::Name_src::~Name_src() in main.cpp.o
"mysqlx::abi2::r0::common::Value::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const", referenced from:
mysqlx::abi2::r0::Value::print(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const in main.cpp.o
construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o
"typeinfo for mysqlx::abi2::r0::common::Value", referenced from:
construction vtable for mysqlx::abi2::r0::common::Value-in-mysqlx::abi2::r0::Value in main.cpp.o
typeinfo for mysqlx::abi2::r0::Value in main.cpp.o
"VTT for mysqlx::abi2::r0::common::Value", referenced from:
mysqlx::abi2::r0::common::Value::~Value() in main.cpp.o
"vtable for mysqlx::abi2::r0::DbDoc", referenced from:
mysqlx::abi2::r0::DbDoc::~DbDoc() in main.cpp.o
mysqlx::abi2::r0::DbDoc::DbDoc() in main.cpp.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
Thank you for any responses:D