[so] [tema2] linux implicit declaration of function `daemon'
Mircea Gherzan
mgherzan at rdslink.ro
Sat Nov 17 19:24:42 EET 2007
Poate ai uitat sa pui:
#include <unistd.h>
Claudiu Tanase wrote:
> Stie cineva de ce imi da warningul asta?
> implicit declaration of function `daemon'
>
> eu am in cod asta:
> int dval = daemon(0,0);
> CHECK(dval,"daemon",error);
>
> in pagina de man zice daemon ca intoarce int, iar checkerul de pe site
> da niste caractere ciudate:
>
> gcc -Wall -c server.c -o server.o
> server.c: In function ‘main’:
> server.c:132: warning: implicit declaration of function ‘daemon’
>
--
Mircea Gherzan
Faculty of Automatic Control and Computers
Politehnica University of Bucharest
More information about the so
mailing list