Mail Archives: djgpp/1999/02/23/09:03:01
On Tue, 23 Feb 1999, Rafael García wrote:
> I can work with the data files from DJGPP and from BC well, but the format
> of structures seems to be different in both compilers because I cannot
> recognize it from the other.
See section 22.10 of the DJGPP FAQ list (v2/faq211b.zip from the same
place you get DJGPP). It discusses this problem and suggests several
solutions.
> I have tried #pragma pack(1) to make format compatible, but it don't work.
Probably because you forgot that int is 32-bit in DJGPP, whereas it's
16-bit in BC. Otherwise, pragma pack works for me.
- Raw text -