Subject: Re: Compiling with crypt....
To: The Great Mr. Kurtz <davagatw@mars.utm.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-mac68k
Date: 12/16/1995 15:44:26
On Sat, 16 Dec 1995 16:07:46 -0600 (CST) 
 "The Great Mr. Kurtz <davagatw@mars.utm.edu>" <davagatw@mars.utm.edu> wrote:

 > I'm having a bit of trouble getting a program that uses the crypt 
 > statement to compile under NetBSD.  Yes, I've installed the secr11 
 > package, so I know the library's there.  The compiler keeps giving me 
 > "undefined reference to _crypt in text" errors.  How do I make the 
 > compiler aware of libcrypt?

You have to make sure that you link with libcrypt.  You do this by 
passing "-lcrypt" to the linker.

--------------------------------------------------------------------------
Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939