bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/14779] readelf.c:403:3: error: unknown type name 'mbstate_


From: antoine64leca at hotmail dot com
Subject: [Bug binutils/14779] readelf.c:403:3: error: unknown type name 'mbstate_t'
Date: Wed, 04 Feb 2015 10:50:44 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=14779

Antoine Leca <antoine64leca at hotmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |antoine64leca at hotmail dot 
com

--- Comment #8 from Antoine Leca <antoine64leca at hotmail dot com> ---
(In reply to Jan Smets from comment #7)
> I think this broke cross compilation for i386-mingw (gcc 3.4)
> 
> readelf.o: In function `print_symbol':
> binutils-2.23.2/binutils/readelf.c:469: undefined reference to `_mbrtowc'

Solved for me. As made clear in MingW's include/wchar.h

/* These are resolved by -lmingwex. Alternatively, they can be resolved by
   adding -lmsvcp60 to your command line, which will give you the VC++
   versions of these functions. If you want the latter and don't have
   msvcp60.dll in your windows system directory, you can easily obtain
   it with a search from your favorite search engine.  */

Earlier (obsolete) versions of Mingw-rt did not mention -lmingwex.
Adding LIBS=-lmsvcp60 in the binutils/Makefile did the job for me.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]