Mail Archives: djgpp/1999/05/08/15:00:25
In article <3733F0A8 DOT 9E09BFF3 AT daidun DOT kaist DOT ac DOT kr>,
Ahn Ki-yung <kyagrd AT daidun DOT kaist DOT ac DOT kr> wrote:
>If i make a list<string> and try to random shuffle these error messages come.
>==============================================================================
>n function `void __random_shuffle<basic_string<char,string_ ....and so on to long :-)
>e:/djgpp/lang/cxx/stl_algo.h(617) Error: `lrand48' undeclared (first use this function)
>e:/djgpp/lang/cxx/stl_algo.h(617) Error: (Each undeclared identifier is reported
> only once
>e:/djgpp/lang/cxx/stl_algo.h(617) Error: for each function it appears in.)
>There were some errors
>==============================================================================
>
>So i opened stl_algo.h and the code was like this
>
Just patch stl_config.h file to tell it not to use l/drand48 for djgpp
and you're all set.
--- stl_config.h.~1 Sat May 8 13:21:36 1999
+++ stl_config.h Sat May 8 13:22:12 1999
@@ -138,6 +138,10 @@
# define __STL_USE_NAMESPACES
# endif
+# if defined(__DJGPP__)
+# define __STL_NO_DRAND48
+# endif
+
# if defined(_MSC_VER)
# if _MSC_VER > 1000
# include <yvals.h>
The djgpp/egcs (or gcc) maintainers should send this to Matthew Auster at
SGI (stl AT sgi DOT com) for inclusion.
Regards,
Mumit
- Raw text -