X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs Date: Sun, 17 Jan 1999 11:39:23 -0600 (CST) From: Mumit Khan To: Eli Zaretskii cc: djgpp AT delorie DOT com, Andris Pavenis , Robert Hoehne Subject: Re: c++ & STL: Random_shuffle In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com On Sun, 17 Jan 1999, Eli Zaretskii wrote: > > Just take a look at stl_config.h file and you'll see the trivial > > definition needed for systems without lrand48. Look for the > > __STL_NO_DRAND48 and simply define that for djgpp. > > Thanks for the pointer. > > Shouldn't this be determined automatically at configure time? STL is not configured in the usual sense when you build EGCS (I don't remember what FSF gcc does anymore, but it's moot since the C++ front end FSF gcc is too buggy to be usable in any case), but simply added on as 3rd party code without any changes. A simple patch like the following to STL folks stl AT sgi DOT com should fix this. SGI STL team is very responsive. This is completely untested of course, so usual caveats apply. Sun Jan 17 11:35:34 1999 Mumit Khan * stl_config.h (__STL_NO_DRAND48): Define for djgpp. --- stl_config.h.~1 Sun Jan 17 11:33:22 1999 +++ stl_config.h Sun Jan 17 11:35:15 1999 @@ -173,6 +173,9 @@ # endif # endif +# if defined(__DJGPP__) +# define __STL_NO_DRAND48 +# endif # if defined(__STL_NEED_BOOL) typedef int bool; Regards, Mumit