[TRE-general] minimal build
skaller
skaller at users.sourceforge.net
Sun May 21 06:03:45 EEST 2006
I'm trying to do a minimal build of tre 0.7.2 (modified to C++).
This involves turning off all the options: no GNU, no I18n,
no multibyte etc (I want 100% pure ISO C++ so it compiles
on all platforms).
The macros are a bit confusing, some require 0 or 1 value,
others either to be #defined or not #defined. There are
also two config files which define common symbols, which is
a bit confusing :)
However I get this:
./lpsrc/tre.pak:493: error: cannot convert ‘const char*’ to ‘const
tre_char_t*’ for argument ‘2’ to ‘int tre_compile(regex_t*, const
tre_char_t*, size_t, int)’
which is also going to be an error in C. This is because of
this definition:
#ifdef TRE_WCHAR
typedef wchar_t tre_char_t;
#else /* !TRE_WCHAR */
typedef unsigned char tre_char_t;
#endif /* !TRE_WCHAR */
Should be typedefed to char, not unsigned char.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
More information about the TRE-general
mailing list