Article View: es.comp.os.linux.programacion
Article #9838Eliminar warnings
From: crisp
Date: Fri, 10 May 2002 22:21
Date: Fri, 10 May 2002 22:21
34 lines
2503 bytes
2503 bytes
Hola a todos. Estoy haciendo un peque�o programita en C y al compilar con la opci�n -Wall me aparecen varios warnings que no soy capaz de resolver: gcc -Wall -O2 -c netlcdclient.c -DVERSION=\"0.2.0pre2\" netlcdclient.c: In function `main': netlcdclient.c:112: warning: implicit declaration of function `usleep' netlcdclient.c:143: warning: implicit declaration of function `sleep' netlcdclient.c: In function `decode_switches': netlcdclient.c:172: warning: implicit declaration of function `strncpy' netlcdclient.c:180: warning: implicit declaration of function `atoi' netlcdclient.c:185: warning: implicit declaration of function `strstr' netlcdclient.c: In function `get_iface_stats': netlcdclient.c:262: warning: implicit declaration of function `strtok' netlcdclient.c:286: warning: implicit declaration of function `strtoul' netlcdclient.c:287: warning: implicit declaration of function `strtol' �Alguien tiene alguna idea de por qu� pueden ser y c�mo solucionarlos? Esas funciones son del sistema (no las he creado yo), por lo que no entiendo lo de la "declaraci�n impl�cita". Si necesit�is m�s datos del programa, s�lo ten�is que pedirlos. �Hay alg�n sitio con alguna especie de ayuda de los errores de compilaci�n de GCC? (He mirado el manual y no trae nada) Gracias por adelantado y un saludo. - e-mail: crisp (arroba) softhome (punto) net Sustituye lo que est� entre par�ntesis si quieres contactar conmigo
Technical Details
Message-ID:
<vlhoduk53o5ppe6ba1pi3u0cedbpq6425c@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f86c8,3e6171f82d9fcf77,start X-Google-Attributes: gidf86c8,public X-Google-ArrivalTime: 2002-05-10 15:25:41 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!diablo.netcom.net.uk!netcom.net.uk!btnet-peer!btnet!newsfeed.bt.es!news.bt.es!not-for-mail From: crisp <esta@no.es.mi.direccion.verdadera> Newsgroups: es.comp.os.linux.programacion Subject: Eliminar warnings Date: Sat, 11 May 2002 00:21:09 +0200 Organization: Tarifa Plana....YA!!! Lines: 34 Message-ID: <vlhoduk53o5ppe6ba1pi3u0cedbpq6425c@4ax.com> NNTP-Posting-Host: cable51a190.usuarios.retecal.es Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: titan.bt.es 1021068646 23336 212.22.51.190 (10 May 2002 22:10:46 GMT) X-Complaints-To: abuse@bt.es NNTP-Posting-Date: 10 May 2002 22:10:46 GMT X-Newsreader: Forte Agent 1.91/32.564