Mail Archives: djgpp/2000/05/03/15:07:16
how about "#pragma pack (push, 1)" before structure definition and "#pragma pack
(pop)" after?
Btw, don't forget that "int" is 4 byte long in GCC, while BC++ 3.1 has 2 bytes.
The same with near pointers.
HTH.
Alexei A. Frounze
-----------------------------------------
Homepage: http://alexfru.chat.ru
Mirror: http://members.xoom.com/alexfru
Alexandre Devaure wrote:
>
> Hi,
> I'd like the size of my structures is the same that in Borland C because my
> program need to read a structure in flash written by a program developed
> under Borland C. So, I want to use the -fpack-struct option at compilation
> time. But it has no effect on the structure size and I need to add the
> packed attribute on each structure. The option worked on gcc 2.8 so, the
> fact it has no effect on gcc 2.95 is bug or this option is now disable?
> TIA
> Alex
- Raw text -