Mail Archives: djgpp/1997/01/05/09:41:09
Roland Nilsson wrote:
>
> struct foo
> {
> char a;
> long b;
> } __attribute__((packed));
>
> This will not compile - gcc thinks I forgot the ending ';', and it
> never recognizes the attribute. The error message:
>
> foo.cc:5: semicolon missing after declaration of 'foo'
Attributes are fully implemented for every DJGPP version I have ever
seen. The code fragment you wrote above, when pasted into a basic hello
world program, compiles without warnings with -Wall on my machine. Are
you sure that's exactly how you wrote it in your code?
Also, what version of gcc are you using? (Hint: type 'gcc -v')
--
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---)
O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++
e(*)>++++ h!() !r !y+()
------END GEEK CODE BLOCK------
- Raw text -