Operating System - HP-UX
1828490 Members
2751 Online
109978 Solutions
New Discussion

Error while compiling with HP aCC compiler.

 
Naginder Dassi
Occasional Contributor

Error while compiling with HP aCC compiler.

Hi ,
I am facing a problem when I am compling my existing code , previously compiled with HP cfront comiler, with the aCC compiler. I am getting the error ."Size of struct/class/union exceeds compiler limits" ..Is there any option by which I can increase the limit .
Please help ???
1 REPLY 1
Adam J Markiewicz
Trusted Contributor

Re: Error while compiling with HP aCC compiler.

I'm affraid it's not changable. But it's only mu guess.

However I've checked this limit:

struct s1 {
char c[ 1 << 29 ];
};

compiles, while

struct s2 {
char c[ ( 1 << 29 ) + 1 ];
};

does not.

But the limit seems to be enough for any application needs.

However there could be a possibility that you are calculating size and you get it negative somewhere, which casted to unsigned results in huge positive. Check it.

Good luck

Adam
I do everything perfectly, except from my mistakes