Operating System - Linux
1828171 Members
2659 Online
109975 Solutions
New Discussion

Re: Compilation Error While migrating from HP CC to aCC compiler...

 
Preethi Vishwanath
New Member

Compilation Error While migrating from HP CC to aCC compiler...

Hi ,
I am facing a problem when I am compling my existing code , previously compiled with HP cfront compiler, with the aCC compiler.I am getting the warning
Warning (anachronism) 823: preprocessing concatenation operation results in two valid preprocessing tokens. Depending on this implementation defined behavior will result in non-portable code.
#define RPCServer(s,v,m) &##s##_v##v##_##m##_s_ifspec

Could you pl let me know the option used for concatenation in aCC..

Thanks
Preethi
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Compilation Error While migrating from HP CC to aCC compiler...

Warning 823 is trying to tell you that you can't use ## to concatenate strings that will not create a single pp token. For example you can't use it on:
abc ## ::

The solution is to remove the "##".