Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "Joachim Schmitz" <nospam.jojo@schmitz-digital.de> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: puzzling error |
| Date | 2011-05-07 09:59 +0200 |
| Organization | 1&1 Internet AG |
| Message-ID | <iq2u62$cc3$1@online.de> (permalink) |
| References | <4dc29b93$0$5067$bbae4d71@news.suddenlink.net> <ipu74e$r3m$1@news.cict.fr> <4dc2daae$0$5070$bbae4d71@news.suddenlink.net> <79udnSOPKtxVdV_QnZ2dnUVZ_v6dnZ2d@bestweb.net> <4dc2ec05$0$5045$bbae4d71@news.suddenlink.net> |
Bill Cunningham wrote: > Kenneth Brody wrote: > >> On gcc (and many other compilers, though the Standard is mute on the >> subject of command line flags to a compiler), the "-D_GNU_SOURCE" >> flag on the command line is equivalent of putting this at the top of >> the source file: >> #define _GNU_SOURCE >> >> You say you tried the #define in the source file. Did you put it >> above the #include <string.h> line? These two versions are _not_ >> equivalent: >> #define _GNU_SOURCE >> #include <stdio.h> >> #include <string.h> >> and >> #include <stdio.h> >> #include <string.h> >> #define _GNU_SOURCE > > No I put the define in the middle of the two include directives. If that didn't help, this would indicate that stdio.h includes string.h, and the 'include header guard' of string.h prevents it's content from being seen the 2nd time thru. The '-D_GNU_SOURCE' is equivalent to a #define at the start of your source Bye, Jojo
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 08:44 -0400
Re: puzzling error Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-05 13:56 +0100
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:11 -0400
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 09:26 -0700
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 13:26 -0400
Re: puzzling error Chad <cdalten@gmail.com> - 2011-05-05 11:34 -0700
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 14:52 -0400
Re: puzzling error Paul N <gw7rib@aol.com> - 2011-05-05 13:39 -0700
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 13:54 -0700
Re: puzzling error Seebs <usenet-nospam@seebs.net> - 2011-05-05 20:38 +0000
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 14:11 -0700
Re: puzzling error Angel <angel+news@spamcop.net> - 2011-05-05 23:40 +0000
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 13:55 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 14:04 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-09 13:26 -0400
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 11:31 -0700
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 09:06 -0700
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:30 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 13:40 -0400
Re: puzzling error Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-05 21:32 +0100
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 13:34 -0400
Re: puzzling error Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-05 21:38 +0100
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-06 02:39 -0400
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 23:40 -0700
Re: puzzling error Ike Naar <ike@sverige.freeshell.org> - 2011-05-05 13:01 +0000
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:05 -0400
Re: puzzling error Angel <angel+news@spamcop.net> - 2011-05-05 16:23 +0000
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 09:08 -0700
Re: puzzling error Marc Boyer <Marc.Boyer@cert.onera.fr.invalid> - 2011-05-05 13:02 +0000
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:34 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:35 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:40 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 14:08 -0400
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 11:35 -0700
Re: puzzling error Angel <angel+news@spamcop.net> - 2011-05-05 18:54 +0000
OT: man strfry (was Re: puzzling error) Kenneth Brody <kenbrody@spamcop.net> - 2011-05-09 13:33 -0400
Re: man strfry (was Re: puzzling error) "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-11 14:30 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 13:13 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 14:13 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 14:27 -0400
Re: puzzling error "Joachim Schmitz" <nospam.jojo@schmitz-digital.de> - 2011-05-07 09:59 +0200
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-07 11:20 -0700
Re: puzzling error August Karlstrom <fusionfile@gmail.com> - 2011-05-05 15:58 +0200
Re: puzzling error "osmium" <r124c4u102@comcast.net> - 2011-05-05 10:38 -0500
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:03 -0400
Re: puzzling error Joe Wright <joewwright@comcast.net> - 2011-05-05 13:19 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 13:34 -0400
Re: puzzling error "osmium" <r124c4u102@comcast.net> - 2011-05-05 12:54 -0500
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 14:08 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:06 -0400
Re: puzzling error Keith Thompson <kst-u@mib.org> - 2011-05-05 09:11 -0700
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:36 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 13:33 -0400
Re: puzzling error Angel <angel+news@spamcop.net> - 2011-05-05 16:01 +0000
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:09 -0400
Re: puzzling error Angel <angel+news@spamcop.net> - 2011-05-05 16:19 +0000
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:28 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 12:42 -0400
Re: puzzling error "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-05 13:16 -0400
Re: puzzling error Kenneth Brody <kenbrody@spamcop.net> - 2011-05-05 13:41 -0400
csiph-web