| www.delorie.com/archives/browse.cgi | search |
| From: | Michael Schuster <schuster AT eev DOT e-technik DOT uni-erlangen DOT de> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | c++ & STL: Random_shuffle |
| Date: | Fri, 15 Jan 1999 15:48:14 GMT |
| Organization: | Regionales Rechenzentrum Erlangen, Germany |
| Lines: | 41 |
| Message-ID: | <19990115.15481433@eev6.eev> |
| NNTP-Posting-Host: | eev6.e-technik.uni-erlangen.de |
| Mime-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-Newsreader: | Mozilla/3.0 (compatible; StarOffice/5.0; WinNT/Win95) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id KAB03559 |
| Reply-To: | djgpp AT delorie DOT com |
Hi!
I'm using djgpp v2.02 with the gpp v2.81.
If I make use of the stl, I get the error:
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)
c:/djgpp/lang/cxx/stl_algo.h(617) Error: (Each undeclared identifier
is reported only once
c:/djgpp/lang/cxx/stl_algo.h(617) Error: for each function it appears
in.)
There were some errors
Although I can fix the problem modifying stl_algo.h I wonder if I have
an installation problem.
Here a source showing the problem:
#include <stl>
void foo()
{
int X[50];
for (int t=0; t<50;t++) X[t]=t;
random_shuffle(X,X+49);
}
Thanks for your help!
Gruesse
Michi
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |