www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/31/07:08:12

X-Authentication-Warning: mail.bio.uva.nl: Host biomacI-138.bio.uva.nl [145.18.167.138] claimed to be [145.18.167.138]
Message-Id: <v01540b00b3781de90ad7@[145.18.167.138]>
Mime-Version: 1.0
Date: Mon, 31 May 1999 13:10:05 +0200
To: djgpp AT delorie DOT com
From: dlanor AT dds DOT nl (Ronald Landheer)
Subject: Re: -fpack-struct
Reply-To: djgpp AT delorie DOT com

>> >Dlanor Blytkerchan <dlanor AT dds DOT nl> wrote:
>> >> My problem is this: the gcc info file says: "the offsets of the structure
>> >> members won't agree with system libraries". This is what worries me: what
>> >> does this mean and how likely is it that this will cause problems?
>> Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
>> >You could try the FAQ first.  I think this issue is well explained in
>> >section 22.10 there.
>> Naturally I checked the FAQ first, which didn't help me much, as it
>> recommends using an alternative sequence of members or the
>> __attribute__((packed)) thingy, which amounts to the same thing as using
>> the -fpack-struct compiler option.
>Either you have an old version of the FAQ, or perhaps you didn't quite
>understand what the FAQ explains.  Let me try again.
>You asked (see above) whether using -fpack-struct could get you in
>trouble with system libraries.  Here's a direct quote from section
>22.10:
>                                                              If you use this
>  switch, be sure that source files which you compile with it don't use *any*
>  of the structures defined by library functions, or you will get some members
>  garbled (because the library functions weren't compiled with that switch).
>I think this answers your question nicely.  If not, please explain
>what is missing from this answer.
Hm.. That does indeed answer my question quite nicely.. Either I overlooked
it when I searched the FAQ, or I should download a (much) newer version..
I'll take a look again.

Thanx,

Ronald Landheer aka Dlanor Blytkerchan

-----
This message reached you from the messy desktop of:
  Ronald Landheer
  <dlanor AT dds DOT nl>
Currently working his butt off at:
  The University of Amsterdam
  Faculty of Biology
  Kruislaan 318
  1098-SM Amsterdam
  The Netherlands


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019