im pretty much new to c++ and im currently making a project where i need to connect to a mariadb database, so I investigated and found the official mariadb connector/c++, but im not sure if this is the way most people go... so if you have a better aproach to conect to a mariadb server using c++, please tell me bellow. Im also using gradle for my project, so if you know how to solve my issue using gradle i'd be graceful. Anyway, the issue is that when i follow the official guide
https://mariadb.com/docs/clients/connector-cpp/#building-the-c-application
and compile with
g++ -o app.exe app.cpp -std=c++11 -lmariadbcpp
i get the following:
and got no idea what to do about it.
Again, maybe I'm going the official way, but also the dumb/bad way?, and if not, how could i do it using gradle?