Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Development
  3. mariadb.h missing?

mariadb.h missing?

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 58.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F
    F
    Benjamin Dill
    wrote on last edited by
    #1

    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?聽

    Link Preview Image
    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

    favicon

    GitHub (github.com)

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      I'm pretty much sure it's part of the mariadb connector:

      #include "mysql.h"
      #include "errmsg.h"
      
      1 Reply Last reply
      0
      • F
        F
        Benjamin Dill
        wrote on last edited by
        #3

        Im talking about this:

        #ifdef _WIN32
        // Include our own wrapper header on Windows to avoid conflict with MySQL client library
        #include <mariadb.h>
        #else
        

        I see mysql.h included MariaDB library, but not mariadb.h?

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • F
            F
            Benjamin Dill
            wrote on last edited by
            #5

            Victor, thank you very much! I should have realized this myself...

            1 Reply Last reply
            0

            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
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            Powered by NodeBB Contributors
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups