Mail Archives: djgpp/1996/04/21/12:21:30
In article <Pine DOT SUN DOT 3 DOT 91 DOT 960414095731 DOT 1640Z-100000 AT is>, eliz AT is DOT elta DOT co DOT il
says...
>Are you calling `findfirst' from a C++ program? There is a known bug in
>the C++ compiler that comes with GCC 2.7.2: it doesn't pack structures,
>and struct ffblk is defined with __attribute__((packed)).
>
>To work around, either call `findfirst' from a C function, or surround
>the definition of struct ffblk (on <dir.h>) with #pragma pack(1) ...
>#pragma pack() lines.
Thats damn useful! Is there a list of #pragmas supported in the docs? If
not where can I get one?
Ger.
- Raw text -