public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* random_shuffle failure on B20.1?
@ 1999-04-09 14:35 Phil Edwards
  1999-04-09 15:26 ` Mumit Khan
  1999-04-30 18:32 ` Phil Edwards
  0 siblings, 2 replies; 6+ messages in thread
From: Phil Edwards @ 1999-04-09 14:35 UTC (permalink / raw)
  To: Cygwin List

I've been doing some work under B20.1/egcs-1.1.2 using
-mno-cygwin, and getting errors when I try to use the
standard algorithm random_shuffle() (which I have
used before, so I know the STL code isn't completely
full of cheese, etc).

The error messages, and an almost-minimal test case,
were saved to bug.txt; the file is attached.

When I used random_shuffle before, I had problems
because the 48-bit generator would be used instead of
the older generator; we had to call srand48() instead
of srand() before random became truly random.  But
at least it compiled then... is {,l,r}rand() not
implemented on the LoseNT end, or is the wrong cpp
macro being defined?


Much thanks as always,
Phil
(seriously missing the *nix box that just got removed)



-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums
g++ -mno-cygwin -v -c foo.cc > bug.txt 2>&1:
Reading specs from D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cpp.exe -lang-c++ -v -iprefix D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/ -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -remap -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -isystem //D/mingw/include -iwithprefixbefore ../../../../i586-cygwin32/include/mingw32 -D__MINGW32__=0.2 foo.cc C:\tmp/cc7lD86o.ii
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/mingw32
 //D/mingw/include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
End of search list.
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cc1plus.exe C:\tmp/cc7lD86o.ii -mno-cygwin -mno-cygwin -quiet -dumpbase foo.cc -mno-cygwin -version -o C:\tmp/ccGrzyLg.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i586-cygwin32) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h: In function `void __random_shuffle<__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, ptrdiff_t>(struct __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, struct __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, ptrdiff_t *)':
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:624:   instantiated from here
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:613: no match for `__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> & + int'
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:624:   instantiated from here
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: no match for `__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> & - __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> &'
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: `lrand48' undeclared (first use this function)
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: (Each undeclared identifier is reported only once
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: for each function it appears in.)


cat foo.cc >> bug.txt:
#include <string>
#include <list>
#include <algorithm>

using namespace std;

int main ()
{
	list<string>    s;
	s.push_back ("one");
	s.push_back ("two");
	s.push_back ("three");
	s.push_back ("four");
	random_shuffle (s.begin(), s.end());
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: random_shuffle failure on B20.1?
  1999-04-09 14:35 random_shuffle failure on B20.1? Phil Edwards
@ 1999-04-09 15:26 ` Mumit Khan
  1999-04-30 18:32   ` Mumit Khan
  1999-04-30 18:32 ` Phil Edwards
  1 sibling, 1 reply; 6+ messages in thread
From: Mumit Khan @ 1999-04-09 15:26 UTC (permalink / raw)
  To: Phil Edwards; +Cc: Cygwin List

"Phil Edwards" <devphil@my-dejanews.com> writes:
> 
> I've been doing some work under B20.1/egcs-1.1.2 using
> -mno-cygwin, and getting errors when I try to use the
> standard algorithm random_shuffle() (which I have
> used before, so I know the STL code isn't completely
> full of cheese, etc).

Please look up the specs for random_shuffle -- it requires a
random access iterator (hint: use deque as opposed to list).

> 
> The error messages, and an almost-minimal test case,
> were saved to bug.txt; the file is attached.
> 
> When I used random_shuffle before, I had problems
> because the 48-bit generator would be used instead of
> the older generator; we had to call srand48() instead
> of srand() before random became truly random.  But
> at least it compiled then... is {,l,r}rand() not
> implemented on the LoseNT end, or is the wrong cpp
> macro being defined?

Here's a patch for Mingw ... please patch the stl_config.h file located
in the <install_root>/include/g++ directory with the following:

--- stl_config.h.~1	Fri Apr  9 17:19:19 1999
+++ stl_config.h	Fri Apr  9 17:20:38 1999
@@ -138,6 +138,10 @@
 #   define __STL_USE_NAMESPACES
 # endif
 
+# if defined(__GNUC__) && defined(__MINGW32__)
+#   define __STL_NO_DRAND48
+# endif
+
 # if defined(_MSC_VER)
 #   if _MSC_VER > 1000
 #     include <yvals.h>

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: random_shuffle failure on B20.1?
  1999-04-09 15:26 ` Mumit Khan
@ 1999-04-30 18:32   ` Mumit Khan
  0 siblings, 0 replies; 6+ messages in thread
From: Mumit Khan @ 1999-04-30 18:32 UTC (permalink / raw)
  To: Phil Edwards; +Cc: Cygwin List

"Phil Edwards" <devphil@my-dejanews.com> writes:
> 
> I've been doing some work under B20.1/egcs-1.1.2 using
> -mno-cygwin, and getting errors when I try to use the
> standard algorithm random_shuffle() (which I have
> used before, so I know the STL code isn't completely
> full of cheese, etc).

Please look up the specs for random_shuffle -- it requires a
random access iterator (hint: use deque as opposed to list).

> 
> The error messages, and an almost-minimal test case,
> were saved to bug.txt; the file is attached.
> 
> When I used random_shuffle before, I had problems
> because the 48-bit generator would be used instead of
> the older generator; we had to call srand48() instead
> of srand() before random became truly random.  But
> at least it compiled then... is {,l,r}rand() not
> implemented on the LoseNT end, or is the wrong cpp
> macro being defined?

Here's a patch for Mingw ... please patch the stl_config.h file located
in the <install_root>/include/g++ directory with the following:

--- stl_config.h.~1	Fri Apr  9 17:19:19 1999
+++ stl_config.h	Fri Apr  9 17:20:38 1999
@@ -138,6 +138,10 @@
 #   define __STL_USE_NAMESPACES
 # endif
 
+# if defined(__GNUC__) && defined(__MINGW32__)
+#   define __STL_NO_DRAND48
+# endif
+
 # if defined(_MSC_VER)
 #   if _MSC_VER > 1000
 #     include <yvals.h>

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* random_shuffle failure on B20.1?
  1999-04-09 14:35 random_shuffle failure on B20.1? Phil Edwards
  1999-04-09 15:26 ` Mumit Khan
@ 1999-04-30 18:32 ` Phil Edwards
  1 sibling, 0 replies; 6+ messages in thread
From: Phil Edwards @ 1999-04-30 18:32 UTC (permalink / raw)
  To: Cygwin List

I've been doing some work under B20.1/egcs-1.1.2 using
-mno-cygwin, and getting errors when I try to use the
standard algorithm random_shuffle() (which I have
used before, so I know the STL code isn't completely
full of cheese, etc).

The error messages, and an almost-minimal test case,
were saved to bug.txt; the file is attached.

When I used random_shuffle before, I had problems
because the 48-bit generator would be used instead of
the older generator; we had to call srand48() instead
of srand() before random became truly random.  But
at least it compiled then... is {,l,r}rand() not
implemented on the LoseNT end, or is the wrong cpp
macro being defined?


Much thanks as always,
Phil
(seriously missing the *nix box that just got removed)



-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums
g++ -mno-cygwin -v -c foo.cc > bug.txt 2>&1:
Reading specs from D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cpp.exe -lang-c++ -v -iprefix D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/ -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__EXCEPTIONS -remap -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -isystem //D/mingw/include -iwithprefixbefore ../../../../i586-cygwin32/include/mingw32 -D__MINGW32__=0.2 foo.cc C:\tmp/cc7lD86o.ii
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/mingw32
 //D/mingw/include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
End of search list.
 D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cc1plus.exe C:\tmp/cc7lD86o.ii -mno-cygwin -mno-cygwin -quiet -dumpbase foo.cc -mno-cygwin -version -o C:\tmp/ccGrzyLg.s
GNU C++ version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i586-cygwin32) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h: In function `void __random_shuffle<__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, ptrdiff_t>(struct __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, struct __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *>, ptrdiff_t *)':
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:624:   instantiated from here
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:613: no match for `__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> & + int'
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:624:   instantiated from here
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: no match for `__list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> & - __list_iterator<basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &,basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > *> &'
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: `lrand48' undeclared (first use this function)
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: (Each undeclared identifier is reported only once
D:/cygnus/cygwin-b20/H-i586-cygwin32/bin/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include/g++/stl_algo.h:617: for each function it appears in.)


cat foo.cc >> bug.txt:
#include <string>
#include <list>
#include <algorithm>

using namespace std;

int main ()
{
	list<string>    s;
	s.push_back ("one");
	s.push_back ("two");
	s.push_back ("three");
	s.push_back ("four");
	random_shuffle (s.begin(), s.end());
}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: random_shuffle failure on B20.1?
  1999-04-10 17:58 Phil Edwards
@ 1999-04-30 18:32 ` Phil Edwards
  0 siblings, 0 replies; 6+ messages in thread
From: Phil Edwards @ 1999-04-30 18:32 UTC (permalink / raw)
  To: Cygwin List

On Fri, 09 Apr 1999 17:26:05   Mumit Khan wrote:
>"Phil Edwards" <devphil@my-dejanews.com> writes:
>> 
>> I've been doing some work under B20.1/egcs-1.1.2 using
>> -mno-cygwin, and getting errors when I try to use the
>> standard algorithm random_shuffle() (which I have
>> used before, so I know the STL code isn't completely
>> full of cheese, etc).
>
>Please look up the specs for random_shuffle -- it requires a
>random access iterator (hint: use deque as opposed to list).

Well, crap.  First time I've ever screwed up because
of ISO noncompliance.  And my cow-orkers rely on me
to tell them these things...


>Here's a patch for Mingw ... please patch the stl_config.h file located
>in the <install_root>/include/g++ directory with the following:
>
>--- stl_config.h.~1	Fri Apr  9 17:19:19 1999
>+++ stl_config.h	Fri Apr  9 17:20:38 1999
>@@ -138,6 +138,10 @@
> #   define __STL_USE_NAMESPACES
> # endif
> 
>+# if defined(__GNUC__) && defined(__MINGW32__)
>+#   define __STL_NO_DRAND48
>+# endif
>+
> # if defined(_MSC_VER)
> #   if _MSC_VER > 1000
> #     include <yvals.h>
>

Patched and tested.  All is well!

As always, I am in your debt.  Thanks again,
Phil




-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: random_shuffle failure on B20.1?
@ 1999-04-10 17:58 Phil Edwards
  1999-04-30 18:32 ` Phil Edwards
  0 siblings, 1 reply; 6+ messages in thread
From: Phil Edwards @ 1999-04-10 17:58 UTC (permalink / raw)
  To: Cygwin List

On Fri, 09 Apr 1999 17:26:05   Mumit Khan wrote:
>"Phil Edwards" <devphil@my-dejanews.com> writes:
>> 
>> I've been doing some work under B20.1/egcs-1.1.2 using
>> -mno-cygwin, and getting errors when I try to use the
>> standard algorithm random_shuffle() (which I have
>> used before, so I know the STL code isn't completely
>> full of cheese, etc).
>
>Please look up the specs for random_shuffle -- it requires a
>random access iterator (hint: use deque as opposed to list).

Well, crap.  First time I've ever screwed up because
of ISO noncompliance.  And my cow-orkers rely on me
to tell them these things...


>Here's a patch for Mingw ... please patch the stl_config.h file located
>in the <install_root>/include/g++ directory with the following:
>
>--- stl_config.h.~1	Fri Apr  9 17:19:19 1999
>+++ stl_config.h	Fri Apr  9 17:20:38 1999
>@@ -138,6 +138,10 @@
> #   define __STL_USE_NAMESPACES
> # endif
> 
>+# if defined(__GNUC__) && defined(__MINGW32__)
>+#   define __STL_NO_DRAND48
>+# endif
>+
> # if defined(_MSC_VER)
> #   if _MSC_VER > 1000
> #     include <yvals.h>
>

Patched and tested.  All is well!

As always, I am in your debt.  Thanks again,
Phil




-----== Sent via Deja News, The Discussion Network ==-----
http://www.dejanews.com/  Easy access to 50,000+ discussion forums

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1999-04-30 18:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-09 14:35 random_shuffle failure on B20.1? Phil Edwards
1999-04-09 15:26 ` Mumit Khan
1999-04-30 18:32   ` Mumit Khan
1999-04-30 18:32 ` Phil Edwards
1999-04-10 17:58 Phil Edwards
1999-04-30 18:32 ` Phil Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).