Web lists-archives.com

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




-----BEGIN PGP SIGNED MESSAGE-----
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.

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJZE5lMAAoJEMCtNsY0flo/UYUQAKzRI9bFddK4kNmukRQSf0s1
77iOb6+d6xLYIElguq46ac/P9bSF4st4Qz+uoUSxH+YGw1XSiDPRVArgCbPN93W9
FRnLfOKYwX0+sNl8dUdoKJ3HPfPp4f/rHDXfXQ7ZAJvKGXsgUrxlnjCvyRMhtBco
lZRR1P1Q42LtXeZSu2QPh+E+Zwu1T842p41Sv3yNVnLPNDPfJDz29lRdDGXV600+
0Uv6Un5tCjI3qT6nFLhodCzrOz6Im3kQ7Grl4oJlbx2xZu5rzb/xBZsAu2YKxfQk
2fs5MbU2drADRgrwHThX4smpPMwZXLH7CPK4JpZvs9Fsj9HyCpb5pXNphnPsNLlE
a5NX3gSRsqWqJi974F+OYu6ol2vE+F6xpXw3djX4VeVJ72qzXiqPrpDedgVEO1xW
Sj+pAi+kvG111LVTf5tPmTfLd0oqm45ctPeJRc9HTdOmc7qACB2X5oO2dsIZQBER
xMsfsEJ67W5Jskaoal+ytxmrnp9jp6a1hy4YvFDaPOmatAzVQSWrxqnbC14g7Vic
+UeNcNzgNQDik8WV//FAskZZQsOUSnFw5Owhyf3Mje+am8s1n91x6gNBrtqyhhIy
qkfXiARTqyjXQ6M5KSyfNXSnvAUYfGKpaLHjtS2ek6oQBR/kNF1Ae4PBJFMSVal1
TMxFni9JMSmCArQtc9uw
=1U5L
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
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:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe