mariadb.h missing?
-
I'm building from source and I'm failing at the MariaDB database driver, because I can't find "mariadb.h". There is a comment about "your own wrapper header", thus I'm assuming this is not part of the MariaDB library.
Is this file missing in the repo?聽netxms/src/db/dbdrv/mariadb/mariadbdrv.h at 1d3c9de01bf9df8a07189aebc4b5973c679dd206 路 netxms/netxms
NetXMS - Open Source network and infrastructure monitoring and management - netxms/src/db/dbdrv/mariadb/mariadbdrv.h at 1d3c9de01bf9df8a07189aebc4b5973c679dd206 路 netxms/netxms
GitHub (github.com)
-
I'm pretty much sure it's part of the mariadb connector:
#include "mysql.h" #include "errmsg.h" -
Im talking about this:
#ifdef _WIN32 // Include our own wrapper header on Windows to avoid conflict with MySQL client library #include <mariadb.h> #elseI see mysql.h included MariaDB library, but not mariadb.h?
-
Because we have both MySQL client and MariaDB client on common include path (MySQL going first) during Windows build, we cannot use
#include <mysql.h>
in MariaDB driver as it will pick up header file from MySQL client. So we creat simple header file called mariadb.h and place it besides mysql.h from MariaDB client:#include "mysql.h" #include "errmsg.h"Best regards,
Victor -
Victor, thank you very much! I should have realized this myself...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 馃挆
Register Login