From chuck@unity.ncsu.edu  Thu Nov 21 08:16:41 1996
Received: from mustang.unity.ncsu.edu by eos03a.eos.ncsu.edu (8.7.3/ES20May96)
        id IAA16427; Thu, 21 Nov 1996 08:16:41 -0500 (EST)
From: chuck@unity.ncsu.edu
Received: by mustang.unity.ncsu.edu (8.6.9/UC06jan95)
	id IAA18991; Thu, 21 Nov 1996 08:16:41 -0500
Date: Thu, 21 Nov 1996 08:16:41 -0500
Message-Id: <199611211316.IAA18991@mustang.unity.ncsu.edu>
To: kaltofen@eos.ncsu.edu
Cc: help@ncsu.edu
Reply-To: help@ncsu.edu
X-Mailer: QWMailer
Subject: Call 25803: linking to random and srandom
Status: OR

###### daemon (customerq): September 17, 1996 19:52PM EDT

Erich Kaltofen <kaltofen@eos.ncsu.edu> sent via e-mail:

> I am trying to linking to the better random number generators
> random and srandom (you can do a "man 3 random" to get info
> on these) but I get an "undefined symbol" error.
>
> Please send me the library name that contains these functions
> (for "gcc file.c -lx").
>
> Thanks, Erich

Sorry for the delayed response to your question.  Under Solaris, the
random() and srandom() functions are in the BSD/UCB compatiability
library.  This library can be linked by using the following switches:

	-R/usr/lib:/usr/4lib:/usr/ucblib -lucb

However, use of these functions and any of the BSD/UCB compatiability
functions is discouraged under Solaris.  From the man page on random():

	Use of these interfaces should be restricted to only  appli-
	cations  written  on BSD platforms.  Use of these interfaces
	with any of the system libraries or in multi-thread applica-
	tions is unsupported.

If you are using this function on something other than a Solaris workstation
and you are still in need of an answer to this question, please let us know
and we will get back in touch with you (in a more timely fashion).

-chuck-

                  Chuck Kesler | Computing Center
   Lead Systems Programmer for | North Carolina State University
 Eos/Unity Production Services | Box 7109 NCSU Campus, Raleigh, NC 27695
                               | E-mail: chuck@eos.ncsu.edu

