Date: Sun, 17 Jan 1999 12:19:22 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Michael Schuster cc: djgpp AT delorie DOT com Subject: Re: c++ & STL: Random_shuffle In-Reply-To: <19990115.15481433@eev6.eev> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Fri, 15 Jan 1999, Michael Schuster wrote: > In function `void __random_shuffle(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.