[ELDK] error: 'errno' undeclared
Anatolij Gustschin
agust at denx.de
Tue Sep 21 18:38:06 CEST 2010
Hi Alberto,
On Tue, 21 Sep 2010 17:46:03 +0200
Alberto Ciampini <a.ciampini at sicep.it> wrote:
...
> i have a strange issue when cross compiling for arm: if i try to use
> errno (or build programs that uses it), i get (for example):
>
> cmem.c:116: error: 'errno' undeclared (first use in this function)
> cmem.c:116: error: (Each undeclared identifier is reported only once
> cmem.c:116: error: for each function it appears in.)
Are you compiling a kernel module or a user space app?
> and of course i have not forgotten to #include <errno.h>
> what puzzles me is that the errno.h file (eldk/arm/usr/include/errno.h)
> only includes <asm-generic/errno.h> and that file is just a list of
> defines....
> i also looked at the files in the include path, but it seems that the
> errno variable is not defined anywhere....
What ELDK version is this and how did you set it up? Your errno.h
seems to be from Linux kernel source.
Best regards,
Anatolij
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
More information about the eldk
mailing list