1

我尝试使用 Borland C++ 5.5 编译器按照说明http://www.vim.org/scripts/script为 win32重新构建 Ctags 5.8 源代码(http://sourceforge.net/projects/ctags/ ) .php?script_id=2288,但是我得到了我不知道的编译错误。

 gnu_regex/regex.c:
 Error E2139 gnu_regex/regex_internal.h 362: Declaration missing ;
 Error E2303 gnu_regex/regex_internal.c 23: Type name expected
 Error E2303 gnu_regex/regex_internal.c 41: Type name expected
 Error E2147 gnu_regex/regcomp.c 104: 'RE_TRANSLATE_TYPE' cannot start a parameter declaration
 Error E2303 gnu_regex/regcomp.c 110: Type name expected
 Error E2451 gnu_regex/regcomp.c 225: Undefined symbol 'no_sub' in function       re_compile_pattern
 Error E2451 gnu_regex/regcomp.c 225: Undefined symbol 'RE_NO_SUB' in function re_compile_pattern
 Error E2451 gnu_regex/regcomp.c 228: Undefined symbol 'newline_anchor' in function re_compile_pattern
 Error E2451 gnu_regex/regcomp.c 272: Undefined symbol 'buffer' in function re_compile_fastmap
 Error E2451 gnu_regex/regcomp.c 273: Undefined symbol 'fastmap' in function re_compile_fastmap
 Error E2451 gnu_regex/regcomp.c 283: Undefined symbol 'fastmap_accurate' in function re_compile_fastmap
 Error E2451 gnu_regex/regcomp.c 306: Undefined symbol 'buffer' in function re_compile_fastmap_iter
 Error E2451 gnu_regex/regcomp.c 308: Undefined symbol 'syntax' in function re_compile_fastmap_iter
 Error E2451 gnu_regex/regcomp.c 308: Undefined symbol 'RE_ICASE' in function re_compile_fastmap_iter
 Error E2451 gnu_regex/regcomp.c 425: Undefined symbol 'can_be_null' in function re_compile_fastmap_iter
 Error E2451 gnu_regex/regcomp.c 475: Undefined symbol 'RE_SYNTAX_POSIX_EXTENDED' in function regcomp
 Error E2451 gnu_regex/regcomp.c 475: Undefined symbol 'RE_SYNTAX_POSIX_BASIC' in function regcomp
 Error E2451 gnu_regex/regcomp.c 477: Undefined symbol 'buffer' in function regcomp
 Error E2451 gnu_regex/regcomp.c 478: Undefined symbol 'allocated' in function regcomp
 Error E2451 gnu_regex/regcomp.c 479: Undefined symbol 'used' in function regcomp
 Error E2451 gnu_regex/regcomp.c 482: Undefined symbol 'fastmap' in function regcomp
 Error E2451 gnu_regex/regcomp.c 483: Undefined symbol 'fastmap' in function regcomp
 Error E2451 gnu_regex/regcomp.c 486: Undefined symbol 'RE_ICASE' in function regcomp
 Error E2451 gnu_regex/regcomp.c 491: Undefined symbol 'RE_DOT_NEWLINE' in function regcomp
 Error E2451 gnu_regex/regcomp.c 492: Undefined symbol 'RE_HAT_LISTS_NOT_NEWLINE' in function regcomp
 Error E2228 gnu_regex/regcomp.c 492: Too many error or warning messages in function regcomp

谁能告诉我我在这里错过了什么?

谢谢。

4

1 回答 1

1

您可以更新 mk_bc5.mk 的 REGEX_DEFINE,如下所示:

REGEX_DEFINE = -DHAVE_REGCOMP -DREGEX_MALLOC -DSTDC_HEADERS=1 -D__USE_GNU -Dbool=int -Dfalse=0 -Dtrue=1 -Dstrcasecmp=stricmp
于 2015-02-17T03:07:30.643 回答