Re: aCC warning message (208 Views)
Reply
Advisor
Rajeesh_1
Posts: 27
Registered: ‎07-03-2002
Message 1 of 3 (208 Views)
Accepted Solution

aCC warning message

I'm getting following warning while compiling
test program.

Details:
aCC Version : aCC: HP aC++/ANSI C B3910B A.06.00


Program Name : test.cpp
#include
int main()
{
cout << "This is rajeesh testing for compiler";
return 0;
}



Warning :

"/opt/aCC/include_std/iostream_compat/iostream.h", line 4: warning #3105-D:
#warning directive: is being replaced by
followed by "using namespace std;"
#warning is being replaced by followed by "using namespace std;"
^
========================

Ofcourse program is getting compiled with
warning. Please let me know why it's happening?
The same works fine on aCC 3.33,3.60 etc..



Regards,
Rajeesh
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 2 of 3 (208 Views)

Re: aCC warning message

This is because, newer versions of aCC follows strict ANSI standards. You can get more accurate answers at, http://h21007.www2.hp.com/dspp/ml/ml_MailingLists_IDX/1,1275,,00.html#24

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Honored Contributor
Stephen Keane
Posts: 1,155
Registered: ‎11-24-2004
Message 3 of 3 (208 Views)

Re: aCC warning message

Try

#include
using namespace std;
int main()
{
cout << "This is rajeesh testing for compiler";
return 0;
}

This meets the ANSI C++ standard.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.