View Single Post
Posts: 105 | Thanked: 1 time | Joined on Feb 2006
#17
Right nearly there.

The problem seems to be that a variable:

char somedata [] = {
0x00. 0x01. etc };

...is not aligned on a four byte boundary.

I've tried sticking

#pragma pack(4)

in front of the line, but the thing still doesn't align.

I don't want to stick padding bytes there (nasty idea).

Anyone suggest the right approach, given that I'm porting and I don't want to change the code that assumes it's aligned on a four byte boundary?

Thanks!