This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Where is random()?
- To: Jan Tomasek <xtomasej at fel dot cvut dot cz>
- Subject: Re: Where is random()?
- From: Mark Fitzgerald <mfitzger at yoho dot uwaterloo dot ca>
- Date: Tue, 15 Dec 1998 11:26:59 -0500 (EST)
- cc: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>
On Sun, 13 Dec 1998, Jan Tomasek wrote:
> On my Linux (Debian) is on random() man page writen that it is in
> defined in stdlib.h
> * if I compile it with gcc on that linux all is ok
> * if I compile it with Cygnus gcc port I get warning:
>
> In file included from sftpx.c:11:
> ftpx.c:9: warning: implicit declaration of function `random'
I ran into the same problem. I didn't bother searching for random(),
though, because as far as I know, random() is not ANSI C++. rand() is
ANSI C++.
Of course, random() is probably lurking about somewhere in there...
Mark
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".