Web lists-archives.com

Re: [Mingw-users] Multiple definition of `vsnprintf' when building C++ programs

> From: Keith Marshall <keithmarshall@xxxxxxxxxxxxxxxxxxxxx>
> Date: Wed, 10 May 2017 23:50:52 +0100
> Hash: SHA1
> On 10/05/17 21:14, I wrote, quoting Eli Zaretskii:
> >> So I hope you will find a solution that works for static linking
> >> as well.
> > 
> > Declaring snprintf and vsnprintf as weak symbols, for the libmingwex
> > build, does the trick, ...
> As does simply adding the "static" keyword, for the stdio.h C++ inline 
> redirects; I can no longer remember why Danny Smith persuaded me to omit 
> it.

I'm not an expert on C++, but I thought it doesn't like 'static
inline' functions.  But maybe inside extern "C" that is not an issue?

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe