How do I use gcov in Cygwin?

HÃ¥vard Sperle Engebretsen <[email protected]> Tue, 4 Oct 2005 22:07:10 +0200
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
Hi!

I am trying to use the gcov function to generate a coverage test of
minimad. The "recipe" i found says that I am to do the following:

(Start quote)
Compile the source file:

     $ gcc -Wall -fprofile-arcs -ftest-coverage minimad.c

This creates an instrumented executable. The executable must then be run
to create the coverage data:

$ ./a

The data from the run is written to several files with the extensions
'.bb' '.bbg' and '.da' respectively in the current directory. This data
can be analyzed using the gcov command and the name of a source file:

$ gcov cov.c
(End quote)

I can't even get past the first step because i can't compile minimad in
any other way than make "minimad.exe"!! Does anyone know how to perform
a successfull coverage test of minimad in Cygwin?

And do I have to to flag the ./configure command?
(e.g ./configure --enable-coverage)
--