Smells like you didn't include a file.

man 2 close says:


#include <unistd.h>


Frederick

________________________________
From: yocto-boun...@yoctoproject.org <yocto-boun...@yoctoproject.org> on behalf 
of Rudolf Streif <rudolf.str...@gmail.com>
Sent: Monday, September 12, 2016 6:53 PM
To: Vijayakumar Badiger
Cc: Yocto Discussion Mailing List
Subject: Re: [yocto] Compilation error


What recipe? Ideally you want to fix the code and add the function declaration.

Kind regards,
Rudolf J Streif

On Sep 12, 2016 6:26 PM, "Vijayakumar Badiger" 
<vijayakuma...@gmail.com<mailto:vijayakuma...@gmail.com>> wrote:
Hello All,

I am getting an compilation error like below. Can you pls let me know how to 
fix this one. Thanks in advance.



 error: implicit declaration of function 'close' 
[-Werror=implicit-function-declaration]
|             close(fd);

Cheers,
Vijay

--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/yocto

-- 
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to