This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Possible bug in egcs-1.1b?


>There was a significant change in 2.0.96(not sure if it existed in prior
>versions) that means that you have to define _GNU_SOURCE yourself so that
>the getopt.h include file will define the struct option for getopt_long().

Yes, this was deliberate.  It's not allowed for getopt.h to pollute the 
namespace unless you explicitly ask for it.

p.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]