When I run make to compile the source code of covtool,
I get the error info as follows.
g++ -o covtool.o -O2 -Wall -pedantic -I.
-I/usr/include/g++ -c covtool.c
In file included from
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../../include/c++/3.4.4/backward/fstream.h:31,
from covtool.c:46:
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../../include/c++/3.4.4/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<iostream> instead of the deprecated header
<iostream.h>. To disable this warning use -Wno-deprecated.
covtool.c: In function `void instrument_beginning()':
covtool.c:221: error: `cout' undeclared (first use this
function)
covtool.c:221: error: (Each undeclared identifier is
reported only once for each function it appears in.)
covtool.c: In function `void instrument_ending()':
covtool.c:243: error: `cout' undeclared (first use this
function)
covtool.c:333: error: `cerr' undeclared (first use this
function)
covtool.c: In function `void instrument_line()':
covtool.c:357: error: `cout' undeclared (first use this
function)
covtool.c: In function `int main(int, char**)':
covtool.c:382: error: `cout' undeclared (first use this
function)
covtool.c:423: error: `cerr' undeclared (first use this
function)
covtool.c: In function `token get_token(cs_iterator,
cs_iterator)':
covtool.c:482: error: `cout' undeclared (first use this
function)
covtool.c: In function `token process_function(token,
cs_iterator)':
covtool.c:1124: error: `cout' undeclared (first use
this function)
covtool.c: In function `token process_if(token,
cs_iterator)':
covtool.c:1339: error: `cout' undeclared (first use
this function)
covtool.c: In function `token process_while(token,
cs_iterator)':
covtool.c:1366: error: `cout' undeclared (first use
this function)
covtool.c: In function `token process_do(token,
cs_iterator)':
covtool.c:1380: error: `cout' undeclared (first use
this function)
covtool.c: In function `token process_for(token,
cs_iterator)':
covtool.c:1404: error: `cout' undeclared (first use
this function)
make: *** [covtool.o] error 1
Same error seen - on Linux x 84
The same error is seen by me