[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Crypt function



On 01-Feb-99 Ted Behling wrote:
> I am trying to compile a C program that utilizes the crypt() function.  It
> worked fine on another Linux box, but on my newly-installed system it says
> that crypt() is undefined or some such.  How do I go about installing the
> library or telling gcc where to look for it?  I'm running Debian with
> kernel version 2.0.34.  Thanks!
> 

1) 
#define _XOPEN_SOURCE
#include <unistd.h>

2) use -lcrypt i.e. gcc crypt_test.c -o crypt_test -lcrypt


Reply to: