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

compile error with MSVC 2015

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • appveyor

    Description

      Trying to compile mariadb on appveyor, using MSVC 2015, see:

      https://ci.appveyor.com/project/rbock/sqlpp11-connector-mysql/build/1.0.86

      I get tons of errors like this one:

      C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1925): warning C4005: 'snprintf': macro redefinition [C:\projects\mariadb-connector-c\build\libmariadb\mariadb_obj.vcxproj]
        C:\projects\mariadb-connector-c\include\ma_global.h(29): note: see previous definition of 'snprintf'
      C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error:  Macro definition of snprintf conflicts with Standard Library function declaration [C:\projects\mariadb-connector-c\build\libmariadb\mariadb_obj.vcxproj
      

      Since the define really only depends on WIN32 I see no way to turn the define off.

      Attachments

        Activity

          People

            georg Georg Richter
            rbock Roland
            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.