[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regex & g++
From: |
Sam Steingold |
Subject: |
Re: regex & g++ |
Date: |
Tue, 23 Aug 2005 13:05:20 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
> * Paul Eggert <address@hidden> [2005-08-20 00:44:38 -0700]:
>
> Sam Steingold <address@hidden> writes:
>
>> g++ cannot compile regex, possibly because of K&R style:
>
> I installed the following patch into gnulib in an attempt to fix this,
> and also submitted the corresponding bug reports to glibc.
> Please let me know how it works for you.
better but still no go:
In file included from regex.c:85:
regex_internal.c: In function `reg_errcode_t re_string_construct(re_string_t*,
const char*, int, char*, int, const re_dfa_t*)':
regex_internal.c:97: error: invalid conversion from `int' to `reg_errcode_t'
regex_internal.c: In function `reg_errcode_t
re_string_reconstruct(re_string_t*, int, int)':
regex_internal.c:720: error: invalid conversion from `int' to `reg_errcode_t'
In file included from regex.c:86:
regcomp.c: In function `void re_compile_fastmap_iter(regex_t*, const
re_dfastate_t*, char*)':
regcomp.c:314: error: invalid conversion from `void*' to `unsigned char*'
regcomp.c: In function `reg_errcode_t init_dfa(re_dfa_t*, int)':
regcomp.c:819: error: invalid conversion from `void*' to `re_state_table_entry*'
In file included from regex.c:87:
regexec.c: In function `reg_errcode_t push_fail_stack(re_fail_stack_t*, int,
int, int, regmatch_t*, re_node_set*)':
regexec.c:1324: error: invalid conversion from `void*' to `re_fail_stack_ent_t*'
regexec.c: In function `re_dfastate_t* find_recover_state(reg_errcode_t*,
re_match_context_t*)':
regexec.c:2342: error: no match for 'operator==' in 'err == REG_NOERROR'
regexec.c: In function `reg_errcode_t get_subexp(re_match_context_t*, int,
int)':
regexec.c:2725: error: invalid conversion from `void*' to `state_array_t*'
regexec.c: In function `reg_errcode_t check_arrival_expand_ecl_sub(re_dfa_t*,
re_node_set*, int, int, int)':
regexec.c:3131: error: invalid conversion from `int' to `reg_errcode_t'
regexec.c: In function `reg_errcode_t extend_buffers(re_match_context_t*)':
regexec.c:4028: error: invalid conversion from `int' to `reg_errcode_t'
regexec.c: In function `reg_errcode_t match_ctx_add_subtop(re_match_context_t*,
int, int)':
regexec.c:4220: error: invalid conversion from `void*' to `re_sub_match_top_t*'
regexec.c: In function `re_sub_match_last_t*
match_ctx_add_sublast(re_sub_match_top_t*, int, int)':
regexec.c:4247: error: invalid conversion from `void*' to `re_sub_match_last_t*'
make[1]: *** [regex.o] Error 1
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.palestinefacts.org/> <http://truepeace.org> <http://pmw.org.il/>
<http://www.mideasttruth.com/> <http://www.dhimmi.com/> <http://www.camera.org>
I don't have an attitude problem. You have a perception problem.