Web lists-archives.com

Re: [Mingw-users] Undefined reference to _get_current_locale in MinGW 4.8.2




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

On 03/08/16 12:03, Peter Bočan wrote:
> Hello guys, I’ve been trying to get one specific library to
> compile (MinGW 4.8.2, Qt 5.3.0), the linking stage will fail due to
> missing reference to _get_current_locale, which seems to be
> available in locale.h header. Any idea how to fix it?

If you look in <locale.h>, you will see that the prototype declaration
for _get_current_locale() is dependent on:

  #if __MSVCRT_VERSION__ >= __MSVCR80_DLL

(unless you are still using a TARFUBAR mingwrt-4.x release, in which
case you should fix your installation, to use mingwrt-3.22.1 instead).
 To expose the declaration, you should have enabled that feature test,
and as a consequence, you've entered into a contract to link with one
of the non-free RTLs, from MSVCR80.DLL onwards; AFAIK, this function
simply isn't available in any OS provided MSVCRT.DLL.

Do note that, if you do choose this non-free RTL linking option, then
you should tweak your GCC specs file, to ensure that you use this RTL
*instead* of MSVCRT.DLL; specifying it in *addition* to the default
choice of MSVCRT.DLL is just asking for trouble.

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

iQIcBAEBAgAGBQJXoeF9AAoJEMCtNsY0flo/Q64P+gObswFS+AyMAhvjVYXi0s9k
j02vXl6fBDVJQdJsEEJYE9QIZkFuCQWk1z7eBA+sSh9/ObD9oINdmrc8I1J0pIE4
/UpW/Sy6LXqeSnyY8ny9jsyV8webqfWXFlwQ5RnDP/Nhk8/fqcSm8vkcBGUCYEra
RWwdtMn34Kp6cspqY1O4I/zVl3qEy2SHFbOUyL4BxEoJuri8hx2U533R7V3SjmHZ
Yeem6EhU6zrpsgDgAPjfqAKyHHnhfhAe6r9fpzszXJ4FnkATSrQ8pgdmMQYwsChQ
jCp7JxB3GP+hXD3cU+RDFOhV7h8qqC65poC91Ii2Uyz2chN3vC9sxUDDABsrNN9h
yKmPx5ICwSXtcHseJC5I9WTu2N65Rkh7SzbBGHrMinCFtAqZxtIWdfVtdUaTdeUD
CbAwkjznIvCTrORqaqRqOOTPQdu47bDWYMFdJ8VIk1mZmh/PvKvELA4Bw/DZP1oa
kRHaop8xV4RDQ+D1c8j4UJrLjMBmpgtphS2r72M7CYX31+Rlq3EYMBu1c2ns3mD+
zDESwusGFFrI85zbgqWyiqv+yq2YftXs2WXVDnf4RpKMhx11f9FlbolDlg2ZEmeN
0dbI4lA4lYUeQF3ZkKyJl1jp16rRmupggLbDPGx7Pro7H6YtP7xwhnXb9TyRun8z
ajoMlpT3v1mWNxh4yl1/
=/YIE
-----END PGP SIGNATURE-----

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