Xref: news2.mv.net comp.os.msdos.djgpp:4196 From: jasonk AT direct DOT ca (Jason Keddie) Newsgroups: comp.os.msdos.djgpp Subject: Bit field problem. Help! Date: Fri, 24 May 1996 05:56:36 GMT Organization: Keddie Enterprises Lines: 16 Message-ID: <4o3ihi$k54@aphex.direct.ca> Reply-To: jasonk AT direct DOT ca NNTP-Posting-Host: vic-as-02b15.direct.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I'm porting some BC4 stuff over to DJGPP and when I declare a bit field like this struct Life { unsigned neighbours : 4; unsigned alive : 1; unsigned onTheList : 1; unsigned : 2; }; It takes up 4 bytes instead of 1. I've tried using -mno-bit-align but it gives me an error like invalid option or something like that. I need it to take up only 1 byte. Any help greatly appreciated.