This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Wide character support
- From: "www.mail" <www dot mail at ntlworld dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 29 Jan 2005 01:15:35 +0000
- Subject: Wide character support
Hi,
I am new to gcc. Please help. When I try to build GNU
sed 4.1.4 on Win2K, it succeeds on cygwin gcc. But with
mingw, I get link errors for references to wide-character
functions.
For example:
compile.o(.text+0xd15): In function `normalize_text':
c:/Data/Compile/sed-4.1.4/sed/compile.c:1415: undefined reference to `mbrtowc'
execute.o(.text+0x1e6): In function `str_append_modified':
c:/Data/Compile/sed-4.1.4/sed/execute.c:329: undefined reference to `wcrtomb'
Prior to these errors when running ./configure, I got the message:
checking for wcrtomb... no
whereas on Cygwin I got the corresponding message:
checking for wcrtomb... yes
Please could someone tell me how to link these files successfully.
Your help is much appreciated.
Many Thanks,
Jonny