1748240 Members
3626 Online
108759 Solutions
New Discussion юеВ

Re: aCC warning message

 
SOLVED
Go to solution
Rajeesh_1
Advisor

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
2 REPLIES 2
Arunvijai_4
Honored Contributor
Solution

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"
Stephen Keane
Honored Contributor

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.