[TRE-general] Bug in TRE 0.7.5: Macro "tre_mbrtowc" used though undefined
Ville Laurikari
ville at laurikari.net
Thu Mar 22 20:26:16 EET 2007
On Wed, Mar 21, 2007 at 05:40:51PM +0100, Sebastian Pipping wrote:
> Hello!
>
>
> I think I found a bug in TRE 0.7.5: The macro "tre_mbrtowc"
> is used even if not defined:
>
> ..\tre\libtre.a(regcomp.o):regcomp.c:(.text+0x4c):
> undefined reference to `tre_mbrtowc'
>
> I had HAVE_MBRTOWC off here and that made it show.
You need to have either HAVE_MBRTOWC or HAVE_MBTOWC defined. The bug
is actually in tre-internal.h, it should #error out if neither is
defined. I added this fix.
--
http://www.iki.fi/vl/
More information about the TRE-general
mailing list