This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Question using gcov
- From: Arjen Markus <arjen dot markus895 at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Date: Fri, 27 May 2011 10:08:25 +0200
- Subject: Question using gcov
Hi,
I want to use the gcov utility to determine the test coverage of a
(simple) program.
I compiled it like this:
gfortran -o myprogram myprogram -ftest-coverage
and ran it. This produced the expected output from the program itself,
as well as
a file "myprogram.gcno".
But when I run gcov, it complains that it has no file "myprogram.gcda"
to work with.
The *.gcno file I did get is not a "*.gcda" file - gcov complains if I
rename that file.
(Command for gcov: gcov myprogram.f90)
Can anyone tell me what I should do instead?
Regards,
Arjen
PS If this should matter: I run gfortran 4.6.0 on Windows XP.