MySQL Forums
Forum List  »  Connector/C++

Re: Compiling connector/C++ with Visual Studio 2015
Posted by: Luis Silva
Date: June 08, 2016 04:02AM

Hi,

Looks like VS2015 implemented the snprintf() function.

To fix the build, change the file:

driver/nativeapi/mysql_private_iface.h

substituting on line 47:

-#if ( defined(_WIN32) || defined(_WIN64) ) && !defined(snprintf)
+#if ( defined(_WIN32) || defined(_WIN64) ) && !defined(snprintf) && (_MSC_VER < 1900)

This way build should work.

Luís

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.