undefined reference to 'errno'

Eljay Love-Jensen eljay@adobe.com
Fri Dec 5 15:52:00 GMT 2003


Hi Fernando,

The code snippet...

#include <errno.h>
extern int errno;

...the "extern int errno;" is incorrect.  It should not be there.

On some systems, especially those that support threads, errno is usually a macro to mapping to a function call.

HTH
--Eljay




More information about the Gcc-help mailing list