Compilation error in aCC error #2350 (64 Views)
Reply
Advisor
Goutham YJ
Posts: 15
Registered: ‎09-11-2009
Message 1 of 2 (64 Views)

Compilation error in aCC error #2350

Hi,

We are migrating a C/C++ application from HPUX11.11 to Itanium V23. I am compiling as a 32 bit application.

I am getting teh following error while compiling with -AP option.

/opt/aCC/bin/aCC -I/opt/tuxdir/tuxedo8.1/include -I/opt/siadev/mxshai3/SIA/1_1_code/common/include -I/opt/siadev/slayer/include -g0 -AP -w +z +DD32 -c OSCMonitor.cpp
"OSCMonitor.cpp", line 839: error #2350: more than one operator ">>" matches
these operands:
function "operator>>(RWvistream &, Boolean &)"
function "RWvistream::operator>>(bool &)"
operand types are: RWvistream >> bool
stream >> tsl->serverName >> tsl->seconds >> tsl->msecs >> tsl->deser;
^

1 error detected in the compilation of "OSCMonitor.cpp".

The problem here is RW libraries dont have >> operator to read bool data type.

I found that aCC5 does a implicit conversion of undefined data types by giving a future error. but while we are migrating to Itaniu series which uses aCC6.2, I am getting the above error.

Is there any way of overcoming this without having to change the variable datatypes in my sources?

Please help.

Thanks,
Goutham
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,750
Registered: ‎03-06-2006
Message 2 of 2 (64 Views)

Re: Compilation error in aCC error #2350

function "operator>>(RWvistream &, Boolean &)"
function "RWvistream::operator>>(bool &)"
operand types are: RWvistream >> bool

Which one should it call?
You may have to use -AA to get it to pick the right one. (Or you may have to use -Aa to turn on koenig lookup.)

>The problem here is RW libraries don't have >> operator to read bool data type.

It looks like they have too many.
Note: The tools.h++ is much older with -AP.

>I found that aCC5

You mean aCC3 for PA?

>Is there any way of overcoming this without having to change the variable datatypes in my sources?

What are your types?

>-AP -w

You should NOT be using -w! Instead use +Wnnnn,mmmm for each one, after careful analysis.
Please use plain text.
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