Re: undefined reference to 'errno'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux