Article View: fr.comp.lang.c
Article #15658Re: [GCC][C99] Question existentielle
From: Richard Delorme
Date: Wed, 14 Sep 2005 15:30
Date: Wed, 14 Sep 2005 15:30
23 lines
1901 bytes
1901 bytes
Stephane Zuckerman a �crit : > Je tentais de compiler un petit programme UNIX, avec la commande > > gcc -Wall -W -O3 -pedantic -std=c99 -o monprog monprog.c > > quand, a l'appel de inet_aton(), GCC me repond : > > monprog.c:24: warning : implicit declaration of function 'inet_aton' > > Evidemment, j'ai verifie que les headers etaient inclus correctement. > > Lorsque je retire l'option std=c99, plus de probleme de warning. Y a-t-il > quelque chose qui aurait change entre C89 et C99 pour ce qui est des > declarations de fonctions ? Si l'on retire -std=c99, on est en mode gcc et non c99 ou c89. Il faut aussi ajouter -std=c89 ou -ansi pour �tre en mode c89. La d�finition de certaines macros peut changer selon ces options. -- Richard
Technical Details
Message-ID:
<432841f6$0$305$7a628cd7@news.club-internet.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!m.t-online.fr!v.t-online.fr!t-online.fr!not-for-mailReferences:
<Pine.OSF.4.58.0509141241430.76796@vega.utc.fr>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,dfa86d012b670262 X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!m.t-online.fr!v.t-online.fr!t-online.fr!not-for-mail Date: Wed, 14 Sep 2005 17:30:01 +0200 From: Richard Delorme <abulmo@nospam.fr> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050801) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: fr.comp.lang.c Subject: Re: [GCC][C99] Question existentielle References: <Pine.OSF.4.58.0509141241430.76796@vega.utc.fr> In-Reply-To: <Pine.OSF.4.58.0509141241430.76796@vega.utc.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 23 Message-ID: <432841f6$0$305$7a628cd7@news.club-internet.fr> Organization: Club-Internet / T-Online France NNTP-Posting-Date: 14 Sep 2005 15:29:58 GMT NNTP-Posting-Host: 62.34.56.67 X-Trace: 1126711798 news.club-internet.fr 305 62.34.56.67 X-Complaints-To: abuse@club-internet.fr