www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/17/12:50:51

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 <khan AT xraylith DOT wisc DOT edu>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp AT delorie DOT com, Andris Pavenis <pavenis AT lanet DOT lv>,
Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Subject: Re: c++ & STL: Random_shuffle
In-Reply-To: <Pine.SUN.3.91.990117192406.29555C-100000@is>
Message-ID: <Pine.SUN.3.93.990117112728.20724F-100000@modi.xraylith.wisc.edu>
MIME-Version: 1.0
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  <khan AT xraylith DOT wisc DOT edu>

	* 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


- Raw text -


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