Error in Gcov for ARM
Jonathan Wakely
jwakely.gcc@gmail.com
Tue Sep 20 07:46:00 GMT 2011
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?
More information about the Gcc-help
mailing list