Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.28
    • 5.5.28a
    • None
    • None

    Description

      1

      An error (only with MariaDB, not with MySQL)

      c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage

      supposedly caused by our mysql_com.h including ws2tcpip.h. This only happens if the client does not include my_global.h before mysql.h

      2

      Headers are in C:\Program Files\MySQL\MySQL Server 5.5-MYSQL\include but in C:\Program Files\MySQL\MySQL Server 5.5-MariaDB\include\mysql

      Attachments

        Activity

          serg Sergei Golubchik created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Description An error (only with MariaDB, not with MySQL)
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          supposedly caused by our mysql_com.h including ws2tcpip.h
          An error (only with MariaDB, not with MySQL)
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}}
          serg Sergei Golubchik made changes -
          Description An error (only with MariaDB, not with MySQL)
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}}
          An error (only with MariaDB, not with MySQL)
          {panel}
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          {panel}
          supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}}
          serg Sergei Golubchik made changes -
          Description An error (only with MariaDB, not with MySQL)
          {panel}
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          {panel}
          supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}}
          h5. 1
          An error (only with MariaDB, not with MySQL)
          {panel}
          {{c:\program files\microsoft sdks\windows\v7.0a\include\wspiapi.h(48): error C2894: templates cannot be declared to have 'C' linkage}}
          {panel}
          supposedly caused by our mysql_com.h including {{ws2tcpip.h}}. This only happens if the client does not include {{my_global.h}} before {{mysql.h}}

          h5. 2
          Headers are in {{C:\Program Files\MySQL\MySQL Server 5.5-MYSQL\include}} but in {{C:\Program Files\MySQL\MySQL Server 5.5-MariaDB\include\mysql}}

          need a full story.

          The minimal example

          #include <mysql.h>

          int main()
          {
          return 0;
          }

          passes for me

          wlad Vladislav Vaintroub added a comment - need a full story. The minimal example #include <mysql.h> int main() { return 0; } passes for me

          Simple C++ DLL VS2010

          oxoocoffee Robert J. Gebis added a comment - Simple C++ DLL VS2010
          oxoocoffee Robert J. Gebis made changes -
          Attachment mariaDBTest1.zip [ 20100 ]

          the installation folder issue is not fixed. There is probably no big harm compared to thw

          wlad Vladislav Vaintroub added a comment - the installation folder issue is not fixed. There is probably no big harm compared to thw
          wlad Vladislav Vaintroub made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]

          no big harm compared to the traditional handling. Since there are no standard hardcoded include directories on Windows, we're unlikely to break existing code. Still would be nice of us to provide cmake module to find MariaDB/MySQL installations

          wlad Vladislav Vaintroub added a comment - no big harm compared to the traditional handling. Since there are no standard hardcoded include directories on Windows, we're unlikely to break existing code. Still would be nice of us to provide cmake module to find MariaDB/MySQL installations
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 25301 ] MariaDB v2 [ 45957 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 45957 ] MariaDB v3 [ 66643 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 66643 ] MariaDB v4 [ 146207 ]

          People

            wlad Vladislav Vaintroub
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.