12 Oct
2005
12 Oct
'05
12:22 a.m.
Le decadi 20 vendémiaire, an CCXIV, rjamison a écrit :
I have had problems with portability of errno, so I usually avoid it. However, I think what you need for the compile is instead of: int errno; use extern int errno;
The only correct way to use errno is:
#include <errno.h>
That is so at least since ANSI C.
Declaring errno by hand like you suggest will give programs that do not link against recent glibc, for example.