Showing results for 
Search instead for 
Do you mean 

aCC warning message

SOLVED
Go to Solution
Highlighted
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
1 ACCEPTED SOLUTION
Honored Contributor Honored Contributor

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

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

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.