You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the include directive from #include "feather.h" to #include "cinatra/include/cinatra.hpp", I am able to compile the example from the README with:
On my system, $(mysql_config --cflags) returns -I/usr/include/mariadb -I/usr/include/mariadb/mysql and $(mysql_config --libs) returns -L/usr/lib/arm-linux-gnueabihf/ -lmariadb.
This, however, produces the following errors:
In file included from feather.h:10,
from hello.cpp:2:
ormpp/mysql.hpp:499:45: error: ‘MYSQL_BIND’ was not declared in this scope
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^~~~~~~~~~
ormpp/mysql.hpp:499:45: note: suggested alternative: ‘MSG_FIN’
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^~~~~~~~~~
MSG_FIN
ormpp/mysql.hpp:499:55: error: template argument 1 is invalid
constexpr void set_param_bind(std::vector<MYSQL_BIND>& param_binds, T&& value) {
^
ormpp/mysql.hpp:499:55: error: template argument 2 is invalid
ormpp/mysql.hpp:553:29: error: expected ‘)’ before ‘*’ token
guard_statment(MYSQL_STMT* stmt) :stmt_(stmt) {}
~ ^
)
ormpp/mysql.hpp:554:4: error: ‘MYSQL_STMT’ does not name a type; did you mean ‘SOL_ATM’?
MYSQL_STMT* stmt_ = nullptr;
^~~~~~~~~~
SOL_ATM
ormpp/mysql.hpp:625:3: error: ‘MYSQL’ does not name a type
MYSQL * con_ = nullptr;
...
What exactly am I doing wrong?
System:
uname : Linux pi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux
g++ : gcc version 8.3.0 (Raspbian 8.3.0-6+rpi1)
Installed : mariadb-server-10.0, libmariadb-dev, default-libmysqlclient-dev, libmysqlcppconn-dev
The text was updated successfully, but these errors were encountered:
After changing the include directive from
#include "feather.h"
to#include "cinatra/include/cinatra.hpp"
, I am able to compile the example from the README with:g++ -std=c++17 hello.cpp -pthread -lstdc++fs -luuid -lboost_system -o hello
I then tried returning the include directive to
#include "feather.h"
and using the following command:g++ -std=c++17 $(mysql_config --cflags) $(mysql_config --libs) -pthread hello.cpp -lstdc++fs -luuid -lboost_system -o hello
On my system,
$(mysql_config --cflags)
returns-I/usr/include/mariadb -I/usr/include/mariadb/mysql
and$(mysql_config --libs)
returns-L/usr/lib/arm-linux-gnueabihf/ -lmariadb
.This, however, produces the following errors:
What exactly am I doing wrong?
System:
The text was updated successfully, but these errors were encountered: