| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:1461 |
| Newsgroups: | comp.os.msdos.djgpp |
| From: | c0905032 AT isaac DOT cs DOT technion DOT ac DOT il (Michael Livshin) |
| Subject: | sizeof(struct ffblk) bug. |
| Reply-To: | c0905032 AT isaac DOT cs DOT technion DOT ac DOT il |
| Organization: | Technion, Israel Institute of Technology |
| Date: | Sun, 25 Feb 1996 17:49:57 GMT |
| Message-ID: | <slrn4j189t.oh8.c0905032@isaac.cs.technion.ac.il> |
| Sender: | news AT discus DOT technion DOT ac DOT il (News system) |
| Lines: | 16 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
The problem is that the size of 'struct ffblk' is different in C & in C++. This actually looks like a genuine GCC bug (the ffblk's declaration uses a lot of __attribute__(packed) hacks). If you plan to use ffblk's in C++ code, write C functions to access ffblk's fields and do not access the fields directly. Just FYI, Michael. -- Michael N. Livshin | "One's never alone with a rubber duck." Technion, CS dept. | The Captain.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |