Operating System - HP-UX
1752664 Members
5973 Online
108788 Solutions
New Discussion юеВ

Re: is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

 
xinhua fahy
Occasional Advisor

is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

Hi,

We are trying to port c++ code from 32 bit HP-UX PA-Risk 32 bit machine to HP-UX ia64 64 bit machine. We use long all over the place. Is there a compiler flag that we can use to treat long as UIN32 instead of 64 bit which is default in 64 bit machine? Is there any better way to do it?
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

> [...] long as UINT32 [...]

Isn't "long" normally _signed_? Why "U"
("UINT32", "UIN32")?

> Is there a compiler flag [...]

Which compiler are you using?


> We use long all over the place.

Well, I guess that that was a mistake.
xinhua fahy
Occasional Advisor

Re: is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

Thank you. Problem is solved.
rick jones
Honored Contributor

Re: is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

How did you solve the problem?
there is no rest for the wicked yet the virtuous have no pillows
xinhua fahy
Occasional Advisor

Re: is there a compiler flag to use to use long as UINT32 instead of 64 bit in HP-UX ia64 itanium machin

I did not port it into 64 bit. I compile and link it in 32 bits instead and it works.