|
From: Keith M. <kei...@us...> - 2016-10-02 14:00:21
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 01/10/16 13:15, Jannick wrote: > with > > mingw32-g++.exe -o t.exe main.c -lbfd -lintl -liberty -lz > > should be fine, in principle, i.e. MinGW's bfd appears to depend > on the libraries intl, (l)iberty and z, at least. For MinGW > compilation gcc needs -LC:\MinGW\msys\1.0\lib for linking. Sigh. How many bazillion times must we repeat this? You absolutely MUST NOT ever attempt to link ANYTHING in this lib directory into any build with the MinGW compiler; they are intended exclusively for use by developers of the MSYS platform itself, using the MSYS special version of GCC, and are incompatible with MinGW's GCC. > But still, the MinGW compiler is complaining: Hardly surprising, since you are trying to force it to use libraries which are not compatible with 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) iQIcBAEBAgAGBQJX8RLfAAoJEMCtNsY0flo/4OAP/3T523VN/2FMFrvABK4PrdTi CnfUypP78PW4DAA4I4gPNGDmc+ve1OGsPQTDAYSEwLgjpOXlay2NfX47z4INyab7 Te3VyMUp8B8EPRnJ9NZfUekgQVicd2xxfm9sY0CwhjpymyV0Kg/grxdUuLXkuh1P v2AgEJwm36QdHtuIsTycfMcmBxYDZ6VhGBtKIhxesEHahrM063t/gkoywTksnrb7 dDxnU3JvI94aDVddZx/OBZ0vh8M/NzJ3FZGwoighDifrWIV/WSbM5Hl1WU1MkDQp Ss4rPh2n0GiHJjK+xrpNWBpqNYhjThsSouOz9u0iLm2MQPofh1cFeJa/hDTmTJjB FjwAQ4QtfbHbQqVdUGe+3gY0fl6n3KOIuRpU8gIf8x+mdKeRtg97ZdwTPXh2aOwP uynIWh5tTUx/vvuYvLV/o6UESFr65+5xocCh0IA4+IkImumPM4IMP0RCTH07izOn 1YEM/MUKsrp936raBDCScrz2jr3tZC1REyLhqMbrgMlg+Ujlw4DBM1j9U5Lev5ny bUEVCzA0jAH9YRfl74HaWRzVngns42juoaaA0c3ACAMJQeIu701qACurXE0qqW2y MWwmzfQld1RX0lUusKkHzim4KZzCnCOjQkOqtITMNHlW2HIAgPD4yNpzxOR47Hsr OTZgV23gwofcMTZjoW5C =J95Q -----END PGP SIGNATURE----- |