Re: [pcre-dev] problem about link pcre.a via Keil uVision

Góra strony
Delete this message
Autor: Henry Wang
Data:  
Dla: pcre-dev
Temat: Re: [pcre-dev] problem about link pcre.a via Keil uVision
i got it.
sorry, i had made a stupid mistake of using 'copy file1+file2+...+filen'
after unzipped the tar ball. so many files were jointed together.

2015-03-10 18:00 GMT+08:00 Henry Wang <henry.yh.wang@???>:

> hello,
>       recently, i imported the pcre-8.36 into a embedded system project
> which using Keil uVision 5 IDE and followed the steps of 'GENERIC
> INSTRUCTIONS FOR THE PCRE C LIBRARY' section within the
> NON-AUTOTOOLS-BUILD.txt.
>       make COMPILE_PCRE8 is set and COMPILE_PCRE16 and COMPILE_PCRE32 are
> not set.
>       HAVE_CONFIG_H has been defined by the compiler of armcc.exe within
> the compiling options.

>
>       while linking, errors occur as below.  what's going on?

>
> --------------------------------------------
> linking...
> .\build\RTT-mxt2127.axf: Error: L6200E: Symbol _pcre_OP_lengths multiply
> defined (by pcre_tables.o and pcre_byte_order.o).
> .\build\RTT-mxt2127.axf: Error: L6200E: Symbol _pcre_hspace_list multiply
> defined (by pcre_tables.o and pcre_byte_order.o).
> .\build\RTT-mxt2127.axf: Error: L6200E: Symbol _pcre_vspace_list multiply
> defined (by pcre_tables.o and pcre_byte_order.o).
> .\build\RTT-mxt2127.axf: Error: L6200E: Symbol _pcre_ucd_records multiply
> defined (by pcre_ucd.o and pcre_byte_order.o).
>
> ..... other lines of error information are not pasted in.
>
> Not enough information to produce a FEEDBACK file.
> Not enough information to list image symbols.
> Not enough information to list the image map.
> Finished: 3 information, 0 warning and 43 error messages.
> ".\build\RTT-mxt2127.axf" - 43 Error(s), 97 Warning(s).
>
> ----------------------------------------------------
>
>       actually, the global various (pcre_uint8 PRIV(OP_lengths)[]) is
> defined  in two C files of pcre_tables.c and pcre_byte_order.c.

>