🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.ubuntu
Article #113

Re: where to put custom headers

#113
From: frank
Date: Sat, 30 Jan 2010 06:22
26 lines
2152 bytes
Alan Curry wrote:
> In article <7s9u9uF6kkU1@mid.individual.net>,
> frank  <frank@example.invalid> wrote:
>> Alan Curry wrote:
>>> The quick way to enable just about everything is -D_GNU_SOURCE
>>>
>> Bravo, Alan, you're always a clutch hitter.  I decided that I would use 
>> that in place of specifying a c standard, because I'm intentionally 
>> going to do things aren't defined by standard C as opposed to posix.
>>
>> Given this intention, would you say this is an appropriate compile 
>> command line:
>>
>> dan@dan-desktop:~/source$ gcc -D_GNU_SOURCE -Wall -Wextra rd3.c -o out
> 
> I usually use -std=c99 -pedantic -D_GNU_SOURCE in combination with each
> other. The -D_GNU_SOURCE makes all the library functions visible in the
> headers, but the choice of -std= still has an effect on syntax-level
> things like nested functions, "typeof" and other keywords, designated
> initializers...
> 

Ok.

Why does -D_GNU_SOURCE not appear in gcc.pdf anyhwere?
-- 
Technical Details
Message-ID: <7si1h9FbsfU1@mid.individual.net>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.freenet.ag!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <7ror8bFjn6U1@mid.individual.net> <7rshd7Fa3vU1@mid.individual.net> <hjbk9j$s2d$1@speranza.aioe.org> <7s9u9uF6kkU1@mid.individual.net> <hjqgah$scd$1@speranza.aioe.org>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1200bcf240,4af9266eb6a90621
X-Google-Attributes: gid1200bcf240,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!newsfeed.freenet.ag!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: frank <frank@example.invalid>
Newsgroups: alt.os.linux.ubuntu,gnu.gcc.help
Subject: Re: where to put custom headers
Date: Fri, 29 Jan 2010 23:22:33 -0700
Lines: 26
Message-ID: <7si1h9FbsfU1@mid.individual.net>
References: <7ror8bFjn6U1@mid.individual.net> <7rshd7Fa3vU1@mid.individual.net> <hjbk9j$s2d$1@speranza.aioe.org> <7s9u9uF6kkU1@mid.individual.net> <hjqgah$scd$1@speranza.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net a0DTN5WY9oh0QmQ+k6UUsgkIY36Cdhhr0w3jPyinL8ZutbAzcR
Cancel-Lock: sha1:5CcJJODkcejJXNgHRYgD6SZVzww=
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
In-Reply-To: <hjqgah$scd$1@speranza.aioe.org>