🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: where to put custom headers

#112
From: Alan Curry
Date: Wed, 27 Jan 2010 22:56
24 lines
1810 bytes
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...

-- 
Alan Curry
Technical Details
Message-ID: <hjqgah$scd$1@speranza.aioe.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder.news-service.com!news.mixmin.net!aioe.org!not-for-mail
References: <7ror8bFjn6U1@mid.individual.net> <7rshd7Fa3vU1@mid.individual.net> <hjbk9j$s2d$1@speranza.aioe.org> <7s9u9uF6kkU1@mid.individual.net>

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!news4.google.com!feeder.news-service.com!news.mixmin.net!aioe.org!not-for-mail
From: pacman@kosh.dhis.org (Alan Curry)
Newsgroups: alt.os.linux.ubuntu,gnu.gcc.help
Subject: Re: where to put custom headers
Date: Wed, 27 Jan 2010 22:56:17 +0000 (UTC)
Organization: Aioe.org NNTP Server
Lines: 24
Message-ID: <hjqgah$scd$1@speranza.aioe.org>
References: <7ror8bFjn6U1@mid.individual.net> <7rshd7Fa3vU1@mid.individual.net> <hjbk9j$s2d$1@speranza.aioe.org> <7s9u9uF6kkU1@mid.individual.net>
NNTP-Posting-Host: sTxz+WYQxLsc0YoLnGRh2g.user.speranza.aioe.org
X-Complaints-To: abuse@aioe.org
Originator: pacman@kosh.dhis.org (Alan Curry)
X-Notice: Filtered by postfilter v. 0.8.2
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)