[CONC-202] compile error with MSVC 2015 Created: 2016-09-26  Updated: 2016-09-26

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Roland Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

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.


Generated at Thu Feb 08 03:03:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.