This is the mail archive of the gcc@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]

-fprofile-generate


Hi,
I made some changes to libgcov.c and gcov-io.h by adding a new function 
named "__gcov_merge_range".
GCC compiles successfully without any error/warning.
However, when I run any sample c program(x.c) using the following command 
"gcc -fprofile-generate x.c", it says 
undefined reference to "__gcov_merge_range" in the linking phase  and it 
does not produce x.gcda file. 
I also tried compiling and linking separately using "-fprofile-generate". 
All the time I get this error.
Can someone help?
regards,
Raj


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