From: Bernard Elsair <bernard.elsair@fr...> - 2001-04-01 23:03:52
Hi group !
I try to use getlogin() function, declared in sys/unistd.h, with mingw=20
and while I have success with cygwin, link step fails when I use gcc=20
Do I have to link with a special flag or a particular library ?
Bernard Elsair - Ing=E9nieur ind=E9pendant
Tel: +33 4 94 46 28 95 / +33 6 16 46 49 17
Bernard Elsair wrote:
> Hi group !
> I try to use getlogin() function, declared in sys/unistd.h, with mingw
> and while I have success with cygwin, link step fails when I use gcc
> -mno-cygwin !!!
> Do I have to link with a special flag or a particular library ?
Is getlogin an ANSI function? Is it supported by the MSVCRT runtime
from Microsoft? Since this is a UNIX standard function then MO is that
no it isn't ANSI and no it isn't supported by the MSVCRT runtime. If
you want UNIX/POSIX functions then you have to use the library that
provides them or code it yourself.
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Get latest updates about Open Source Projects, Conferences and News.