Joe’s Blog!

Joe’s Blog! header image 2

gcc error : “warning: implicit declaration of function”

June 30th, 2005 · 6 Comments

When I compile using the ‘-Wall’ option I recieve this error for many of the functions I am using such as fork(). Is there a reason for this or is it nothing to worry about? Here is the exact I/O:

zeusfaber@der-dieb:~/code/spacket-cmdr$ gcc -g -O3 -Wall -o scmdrd spacket-cmdr-server.c
spacket-cmdr-server.c: In function `main’:
spacket-cmdr-server.c:66: warning: implicit declaration of function `fork’
spacket-cmdr-server.c:67: warning: implicit declaration of function `close’
spacket-cmdr-server.c:76: warning: implicit declaration of function `system’
spacket-cmdr-server.c:79: warning: implicit declaration of function `exit’
spacket-cmdr-server.c:96: warning: implicit declaration of function `inet_ntoa’
spacket-cmdr-server.c:96: warning: format argument is not a pointer (arg 3)

If you have any ideas please post!! Thanks.

6 responses so far ↓

Leave a Comment