🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15652

Re: [GCC][C99] Question existentielle

#15652
From: Jean-Marc Bourguet
Date: Wed, 14 Sep 2005 13:40
26 lines
1897 bytes
Stephane Zuckerman <szuckerm@etu.utc.fr> writes:

> 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 ?

En mettand std=c99 tu desactives toutes les extensions au C ISO en
matiere de bibliotheque, vraissemblablement pas ce que tu veux.
Essaie de definir les macros du genre _POSIX_SOURCE, _GNU_SOURCE...

A+

-- 
Jean-Marc
FAQ de fclc:       http://www.isty-info.uvsq.fr/~rumeau/fclc
Site de usenet-fr: http://www.usenet-fr.news.eu.org
Technical Details
Message-ID: <pxb3bo7ydgr.fsf@news.bourguet.org>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!freenix!gandi!gandi.net!proxad.net!infeed-1.proxad.net!news3-e.free.fr!not-for-mail
References: <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-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!freenix!gandi!gandi.net!proxad.net!infeed-1.proxad.net!news3-e.free.fr!not-for-mail
Newsgroups: fr.comp.lang.c
Subject: Re: [GCC][C99] Question existentielle
References: <Pine.OSF.4.58.0509141241430.76796@vega.utc.fr>
From: Jean-Marc Bourguet <jm@bourguet.org>
Message-ID: <pxb3bo7ydgr.fsf@news.bourguet.org>
Date: 14 Sep 2005 15:40:36 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 26
Organization: Guest of ProXad - France
NNTP-Posting-Date: 14 Sep 2005 15:40:37 MEST
NNTP-Posting-Host: 62.189.36.28
X-Trace: 1126705237 news3-e.free.fr 20938 62.189.36.28:15281
X-Complaints-To: abuse@proxad.net