This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 3.2.3 Linker error while compiling appz using <errno.h> (maybeglibc error)
- From: Jim Wilson <wilson at specifixinc dot com>
- To: rejsmont at rejsmont dot eu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Nov 2003 16:29:50 -0800
- Subject: Re: GCC 3.2.3 Linker error while compiling appz using <errno.h> (maybeglibc error)
- References: <001b01c3b1be$b23a1780$0100a8c0@laptop>
Radosław Ejsmont wrote:
This can be easly fixed in compiled application by supplying errorous file with #include <errno.h> however this is just a temporary fix letting you complite desired application. GCC or GLIBC still has this error.
This is not a gcc bug.
The C language standard says that errno is specified by errno.h, and it
may be a macro or an identifier. Thus for valid C, you must include
errno.h before using errno.
Also, this is a library implementation issue not a gcc issue. Some C
libraries will work even if errno.h is not included. glibc won't,
because glibc defines it to be a macro.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com