I am trying to compile a c++ file, but the compiler seems to be missing some files for the mysql c++ connector. This is how I'm trying to compile it:
g++ -I /usr/local/boost_1_70_0 -L /usr/local/boost_1_70_0 -I /usr/include/mysql-cppconn-8 -pthread -std=c++2a `pkg-config gtkmm-3.0 --cflags --libs` srv.cpp -o srv
One of the lines in the error message is
undefined reference to
`mysqlx::abi2::r0::string::Impl::to_utf8[abi:cxx11]
(mysqlx::abi2::r0::string const&)'
/tmp/ccf90UaW.o: In function `mysqlx::abi2::r0::DbDoc::DbDoc()'
It seems to be this file which tries to find some unlinked code:
.../mysqlx/xdevapi.h
Can someone point me in the right direction as to where the necessary files are? It seems like there are some important files that haven't been linked yet.
pkg-configinvocation to the end of the command line.