Operating System - HP-UX
1846449 Members
2425 Online
110256 Solutions
New Discussion

#warning <iostream.h> is being replaced by <iostream> followed by "using nam

 
muthukumar_3
Occasional Contributor

#warning <iostream.h> is being replaced by <iostream> followed by "using nam

Hi ,

I am migrating my application from HP-UX 10.2 to HP-UX 11.0.
In the process I am also moving from CC to aC++ A.3.37.

With -AA option in my makefile, I am getting the following error:

t/aCC/bin/aCC +DA2.0N +eh -D_HPUX_SOURCE -c -O +DAportable +DS1.1 -I. +w +W22
9 +W361 +W392 +W431 +W655 +W684 +W818 +W819 +W849 +W889 -mt -AA +ESnolit -g -DR
WDEBUG -I/ora/product/v806/precomp/public -I. -I/home/ism/c983236/ph3/apps/tail
/src -I/home/ism/c983236/ph3/apps/tail/pubincl -I/home/ism/c983236/ph3/apps/tail
/tmp -I/dump/ismmig/nonCVS/inc -I/opt/aCC/include /home/ism/c983236/ph3/apps/ta
il/tmp/Tail.cpp -o /home/ism/c983236/ph3/apps/tail/tmp/Tail.o
Warning 890: "/opt/aCC/include_std/iostream_compat/iostream.h", line 4 # #warnin
g is being replaced by followed by "using namespace std;
"
#warning is being replaced by followed by "using nam
espace std;"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^
Error 172: "/opt/aCC/include/iterator", line 757 # Undeclared variable 'cin'.
istream_iterator () : stream(&cin), end_marker(false) {}
I have changed my file1.h as follows,But still the same error is coming.

#ifndef ORA_PROC
//####################### SYSTEM INCLUDES ######################################
#include
#include
#include
#include
#include
#include
#include
using namespace std;

Can anyone suggest me ,what could be the problem.

Thanks,
Muthu
1 REPLY 1
Adam J Markiewicz
Trusted Contributor

Re: #warning <iostream.h> is being replaced by <iostream> followed by "using nam

I think you're looking in wrong place. You should check headers in Tail.cpp.

istream_iterator is a template, so it means that object of the class from this template is being used, before cin stream object was declared. I guess that file1.h is not the first header included in Tail.cpp, is it?

I wouldn't be surprised if this error wasn't even related with this warning.

Good luck

Adam
I do everything perfectly, except from my mistakes