Setup: Beagleboneblack, debian10, arm, mariadb v10.3.36.
Following this guide: https://mariadb.com/docs/connect/programming-languages/cpp/install/
I reach this step:
$ sudo install include/mariadb/* /usr/include/mariadb/
when executing the above command I get the following message; install: omitting directory 'include/mariadb/conncpp'
I ran through the rest of the Install MariaDB Connector/C++ guide, but when i try to compile my task.cpp app using:
$ g++ -o tasks tasks.cpp -std=c++11 -lmariadbcpp
following this example: https://mariadb.com/docs/connect/programming-languages/cpp/sample-app/ i get:
# g++ -o tasks task.cpp -std=c++11 -lmariadbcpp
task.cpp:3:10: fatal error: mariadb/conncpp.hpp: No such file or directory
#include <mariadb/conncpp.hpp>
The main issue is with the -lmariadbcpp i think, its not installed in the correct place or whatever. Can someone explain to me how mariadb connector-library is installed, where it resides, and how i can use it when compiling?
It might be i can't use the c++ connector with my version of mariadb, since c++ connector requires that its a "enterprise" version of maria db. However it should be able to compile/install. Please help me understand the installation process of a library in debian? ?? :)
Update: After some struggle, it seems i can install the files by cd into the include directories and installing the files manually be explicitly using the file name. Atleast i think there is some progress now...
/usr/include/mariadb/conncpp.hpp. Also, check whether the include paths used byg++contain/usr/include(it should, otherwise it's not going to see the header) by appending-vto enable verbose output from the compiler.-lmariadbcppi think" - No, this is a linker flag and it does not affect the compiler finding headers (which is done before the linking step).