Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-269

Building on Windows with mingw-w64

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 2.3.3
    • None
    • None
    • None
    • mingw-w64 on windows

    Description

      There are several places where connector-c is redefining or implementing things on Windows which are already available when compiling with mingw-w64 (the windows gcc port). It would be good to distinguish between different compilers on Windows.

      Downstream patches are here: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-libmariadbclient

      For example libmariadb/my_pthread.c is implementing pthreads which have been natively supported in mingw-w64 which leads to linking errors. An easy fix is to #ifdef _MSC_VER instead of #ifdef _WIN32.

      Attachments

        Activity

          People

            georg Georg Richter
            jeroenooms Jeroen Ooms
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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