This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error in Gcov for ARM


On 20 September 2011 06:13, Harry Trinta wrote:
> Dear,
>
> I am having a problem when compiling a program with options
> -ftest-coverage and -fprofile-arcs to run on an embedded system with
> ARM processor.
> I'm using a GCC cross-compiler (arm-elf) to compile the program.
>
> The errors is as follows:
>
> - undefined reference to `__gcov_merge_add'
> - undefined reference to `__gcov_init'
>
>
> is there any restriction on the use of these parameters for this type
> of processor?

Are you linking with -fprofile-arcs or -lgcov?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]