www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/17/05:20:49

Date: Sun, 17 Jan 1999 12:19:22 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Michael Schuster <schuster AT eev DOT e-technik DOT uni-erlangen DOT de>
cc: djgpp AT delorie DOT com
Subject: Re: c++ & STL: Random_shuffle
In-Reply-To: <19990115.15481433@eev6.eev>
Message-ID: <Pine.SUN.3.91.990117121903.278S-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Fri, 15 Jan 1999, Michael Schuster wrote:

> In function `void __random_shuffle<int *, int>(int *, int *, int *)':  
>                     
> c:/djgpp/lang/cxx/stl_algo.h(617) Error: `lrand48' undeclared (first 
> use this function)    

DJGPP doesn't have the rand48 family of functions in its C library.
Seems like that part of STL assumes that it does.

You can work around by writing a trivial wrapper around `rand' or
`random'.

It should probably be reported as a bug to the STL maintainers.  Or
maybe the procedure that built libstdcxx.a for DJGPP has some bug
whereby it didn't pay attention to the fact that there's no lrand48.
You will have to look at the sources to know for sure.

- Raw text -


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