Mail Archives: djgpp/2001/11/21/02:00:53
On Tue, 20 Nov 2001, Randy Maddox wrote:
> Got the following compiler error message about an undeclared identifier in
> an STL internal header file and DJ asked me to post it here.
>
> C:/djgpp/lang/cxx-v3/bits/stl_algo.h: In function `_Distance
> std::__random_number(_Distance) [with _Distance = int]':
> C:/djgpp/lang/cxx-v3/bits/stl_algo.h:1142: instantiated from `void
> std::random_shuffle(_RandomAccessIter, _RandomAccessIter) [with
> _RandomAccessIter = int*]'
> testArray.cpp:573: instantiated from here
> C:/djgpp/lang/cxx-v3/bits/stl_algo.h:1123: `lrand48' undeclared (first use
> this
> function)
> C:/djgpp/lang/cxx-v3/bits/stl_algo.h:1123: (Each undeclared identifier is
> reported only once for each function it appears in.)
>
> Keep up the good work! Real tools for real developers. I love it.
>
Which DJGPP version do You have?
lrand48 is available in djdev203.zip (include/stdlib.h). Upgrade if You
have any earlier version. If You already have 2.03 than post minimal
example which shows this problem.
Andris
- Raw text -