Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-31

DriverManager.h not present in binary tarball packages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 0.9.3
    • 0.9.4
    • General
    • None

    Description

      The file DriverManager.h is not present in the binary tarball packages:

      $ ls -l mariadb-connector-cpp-0.9.3-beta-ubuntu-bionic-amd64/include/mariadbcpp/
      total 116
      -rw-r--r-- 1 geoff geoff  5913 Aug 11 08:10 CallableStatement.h
      drwxr-xr-x 2 geoff geoff  4096 Aug 11 08:13 compat
      -rw-r--r-- 1 geoff geoff  1465 Aug 11 08:10 ConnCpp.h
      -rw-r--r-- 1 geoff geoff  5119 Aug 11 08:10 Connection.h
      -rw-r--r-- 1 geoff geoff 14295 Aug 11 08:10 DatabaseMetaData.h
      -rw-r--r-- 1 geoff geoff  1928 Aug 11 08:10 Driver.h
      -rw-r--r-- 1 geoff geoff  8358 Aug 11 08:10 Exception.h
      -rw-r--r-- 1 geoff geoff  3969 Aug 11 08:10 jdbccompat.h
      -rw-r--r-- 1 geoff geoff  1949 Aug 11 08:10 ParameterMetaData.h
      -rw-r--r-- 1 geoff geoff  7173 Aug 11 08:10 PreparedStatement.h
      -rw-r--r-- 1 geoff geoff 14011 Aug 11 08:10 ResultSet.h
      -rw-r--r-- 1 geoff geoff  2549 Aug 11 08:10 ResultSetMetaData.h
      -rw-r--r-- 1 geoff geoff  1362 Aug 11 08:10 Savepoint.h
      -rw-r--r-- 1 geoff geoff  4914 Aug 11 08:10 SQLString.h
      -rw-r--r-- 1 geoff geoff  4067 Aug 11 08:10 Statement.h
      -rw-r--r-- 1 geoff geoff  1704 Aug 11 08:10 Types.h
      -rw-r--r-- 1 geoff geoff  1504 Aug 11 08:10 Warning.h
      

      This leads to the following compilation error:

      $ g++ -o Conn.o Conn.cpp -std=c++11 -lmariadbcpp
      In file included from Conn.cpp:3:0:
      /usr/include/mariadbcpp/ConnCpp.h:25:10: fatal error: DriverManager.h: No such file or directory
       #include "DriverManager.h"
                ^~~~~~~~~~~~~~~~~
      compilation terminated.
      

      The workaround is:

      $ wget https://raw.githubusercontent.com/mariadb-corporation/mariadb-connector-cpp/master/include/DriverManager.h
      $ sudo install DriverManager.h /usr/include/mariadbcpp/
      

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.