delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/15/16:23:08

From: mfitzger AT yoho DOT uwaterloo DOT ca (Mark Fitzgerald)
Subject: Re: Where is random()?
15 Dec 1998 16:23:08 -0800 :
Message-ID: <Pine.SOL.3.96.981215112306.25283B-100000.cygnus.gnu-win32@yoho.uwaterloo.ca>
References: <3673E58E DOT 93F1B604 AT fel DOT cvut DOT cz>
Mime-Version: 1.0
To: Jan Tomasek <xtomasej AT fel DOT cvut DOT cz>
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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019