← Back to team overview

maria-developers team mailing list archive

Re: Building MariaDB 10.3 on windows

 

Hi,

this looks like a bug in Connector/C that was recently fixed (exactly like you describe it).

Maybe it is not yet in 10.3. Perhaps it is a good idea to build 10.2 still, rather than 10.3 . I actually did not know we have the 10.3 branch, until your email.


On 04.11.2016 16:08, jerome brauge wrote:
Hi,
I'm new on this mailing list, so sorry if it's not the right place.
I'm trying to build MariaDB  10.3 on Windows 10 with Visual Studio Express 2014.
Compiling failed with many errors "fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration".
To correct this, in ma_global.h,  i  replaced line
	#define snprintf _snprintf
by
	#ifdef _MSC_VER
	#if _MSC_VER< 1900
	#define snprintf _snprintf
	#endif
	#else
	#define snprintf _snprintf
	#endif
and build success.

Best regards.
J.Brauge
_______________________________________________
Mailing list: https://launchpad.net/~maria-developers
Post to     : maria-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~maria-developers
More help   : https://help.launchpad.net/ListHelp



References