www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/05/10:15:23

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Which library is time in?
Date: 5 Jul 2000 14:03:44 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 21
Message-ID: <8jvf80$1pg$1@nets3.rz.RWTH-Aachen.DE>
References: <4vG85.7238$MS3 DOT 148292 AT news1 DOT online DOT no>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 962805824 1840 137.226.32.75 (5 Jul 2000 14:03:44 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 5 Jul 2000 14:03:44 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Geek86 <steivika AT online DOT no> wrote:
> I looked at the DJGPP FAQ 22.23(How to produce random numbers) and it told
> me to set the srand by using the computer clock like this:
> srand(time(NULL));
> But when I try to compile I get the error "called object is not a function".

This error does not happen because you're missing something in your
code.  It's happening because you do have something in your code that
breaks it. You probably have a declaration of "time" or "srand" as a
variable or something similar in scope where you wrote the above line
of code. Otherwise, the error message would be a warning instead, and
the message text different ("implicit declaration of function").

For better help, we'ld have to see a minimal compilable example source
code that gave you that error message.



-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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