This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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.


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