Web lists-archives.com

Re: [Mingw-users] Using mingw's libpng?




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/07/16 01:05, mathog wrote:
> In theory it should be possible to build these extensions with 
> mingw using something like:
> 
> gcc hello.c -nostdlib -lmsvcr90 -lgcc -o hello.exe
                        ^^^^^^^^^

This is unsupported, and quite simply asking for trouble, because
MinGW's GCC implicitly adds -lmsvcrt to that command, and you are then
linking with two (effectively incompatible) versions of the MSVC runtime.

If you need to use MSVCR90.DLL, then you should NOT link with
- -lmsvcrt, and to achieve that, you need to play tunes with the GCC
specs file, as described in
http://www.mingw.org/wiki/SpecsFileHOWTO#comment-106

- -- 
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)

iQIcBAEBAgAGBQJXfhsWAAoJEMCtNsY0flo/MFsP/iIhpEDKPfKOVksEU6JyP9pu
GVr1oDhLAcJd+3USelGde+J5Sho8i3lIECzbfRmotHKslN0Ft/RmS8IY+lHDrZxg
ZntiR0ytk2EtkDGMNzWgCC/WoWO2sOGfrbkU1cj4RAvM5587MwtB2+qp89EUFfef
lDIw68riJAz+fsIBoMxzoNLD9ZMTwLRjctTbdKroh5u8gsyelQHAapM3zpBx1We8
fn1ccJkdtAf9WaurzAAJA8O1v/7XXBiDc8G/5n8+j6Umx5K9qmSTszqWEf/LWWL8
b71nqDKYg4sGbxoHj4xmtHCz4TipCLdSP+2zClQjzbWDiyzBHQkCpqmzbCA6okRA
3dBKabFDSfReYOkQVrfRdZHibo2GfExvvt3MoPjn6eEQ8D6TPVOyOMWtXz7mM7FT
o0Chir9/jICTvEftU5ACoFoGKdpgbu75ndwbOCn/AACtOuOBCUQeVth8wjLVAwkn
uKH43XZo7IsBoSCDwxelGl+zeIfaRPSSDIunUqj2fd7MH8AaUMrKLpMZxcFvE6iI
n6hK3Hsd+ay2gRp+peQzQxyOi9NbrUCWQkx19IfaG3lg26CvcLIHfP3qxNK9Va6y
YlFOHvxQlzRUQIlKeeZTHo1hGziSa2gwlG1WH0U3KTItc4+7lyNS7XbZ09tlphmQ
fM0Bk2JhLUjqi6LPTbAL
=yHW/
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
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