From: "Lucas de Jonge" Newsgroups: comp.os.msdos.djgpp Subject: Help!! ((packed)) problem Date: 2 Dec 1996 01:30:33 GMT Organization: Private Lines: 29 Message-ID: <01bbdfef$355596c0$0ad01bcb@lucas-home> NNTP-Posting-Host: acay02720810.acay.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ok, folks, I'm doing something wrong here, and I can't see what it is. I try to compile this simple program: struct test { char var1; int var2; char var3; } __attribute__ ((packed)); void main(void) { ; } I compile using: gxx -o test.exe test.cc I get: test.cc:5: semicolon missing after declaration of `test' It is obviously not recognising the extension "__attribute__". Since I haven't specified to turn off Language Extensions, I can't see what I am doing wrong. Suggestions welcome!