Mail Archives: djgpp/2003/07/03/09:00:08
Viktor DOT Stujber AT st DOT fmph DOT uniba DOT sk wrote:
> Can someone tell me a:
> 1) compiler switch
> 2) keyword
> 3) method
> with which I could correct the error?
No. Because there is no error in DJGPP's behaviour, in the first
place, thus nothing to be corrected. The assumptions hard-coded into
the program snippets you showed are where the real error is. These
assumption simply don't hold, and code making such assumptions is
broken.
While there are indeed methods to make some structs' layouts fit your
expectations, using them is a) unportable, and b) will usually fail on
at least some platforms such code will have to run on, anyway.
For more background on this, please consult the C FAQ, posted
regularly to the comp.lang.c and comp.lang.c.moderated newsgroups,
among other places.
> reply to 2stujber AT st DOT fmph DOT uniba DOT sk, thanks!
No. You write here --> you read here.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -