This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC 3.2.3 Linker error while compiling appz using <errno.h> (maybeglibc error)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]