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.
fixed!!!
i needed to add the following librarys:
unistd.h
stdlib.h
arpa/inet.h
Whatever. Riding bikes is for fags and five-year-olds, bro.
what about the same warning in case of kernel modules (kernel space)?
I would imagine it would require the same libraries but I’m not a kernel hacking expert.
My Name Soren Yeadon