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'
write functions are declared in
unistd.h which we forgot to include in our code.
Adding the directive
to the source file that used
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!!!
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 🙂