MySQL Forums
Forum List  »  Connector/C++

Re: Compiling connector/C++ with Visual Studio 2015
Posted by: Steve Northup
Date: June 01, 2016 08:45AM

I also tried to get MYSQL C++ Connector working with Visual Studio 2015 and am having no luck. I have tried building 1.1.7 from source, and when I attempt to build I get a bunch of C1189 errors:

Severity Code Description Project File Line Suppression State
Error C1189 #error: Macro definition of snprintf conflicts with Standard Library function declaration mysqlcppconn-static C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h 1927

I am not sure what to do at this point, all of my googling shows that anyone who has seen this error has given up trying to build it and either switched back to an older version of visual studio or has switched away from MySQL entirely. Any help would be appreciated.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.