While working on an socket-based application, we received the following warnings from the compiler:
implicit declaration of function 'read' implicit declaration of function 'write'
read
and write
functions are declared in unistd.h
which we forgot to include in our code.
Adding the directive
#include <unistd.h>
to the source file that used read
and/or write
removed the warnings.
This post is also available in: Greek
I was having the same trouble and your solution worked for me, thank you very much!!!
This helped.
Thanks.
—
Furry cows moo and decompress.
I was having the same problem. I read your answer and my problem got solved. Thank you very much
It’s worked well in Windows 64, For linux, we may use ‘#include’.
For Linux, “sys/syscall.h”
Perfect solution! works great 🙂