On 01/06/13 03:00, Gu, Forrest wrote:
Hi, Nathan,
I’ve seen your message with Qiong Cai on gcov link problem, from a mail of 19
Apr 2003…
gcov has changed a lot since then.
and you suggest to either:
a)add -fprofile-arcs
b)add -lgcov
However, I succeed with a) but fail with b), it prompts:
gcov: invalid option – ‘g’
usage: gcov [OPTION]… SOURCE|OBJ…
It seems -lgcov is not a valid option for gcov command.
Correct. -lgcov is an option to the compiler. IIRC -ftest-coverage
-fprofile-arcs is the right invokation now.
nathan
--
Nathan Sidwell