Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Christopher C Chimelis <chris@beezer.med.miami.edu>
Subject: Re: Compileing
Date: Wed, 25 Feb 1998 13:09:44 -0500 (EST)	[thread overview]
Message-ID: <f01c53c8b4bbd5a129b55b290491d9a4.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.96.980225130110.7331A-100000@alpha.lab.realminfo.com>

On Wed, 25 Feb 1998 mike@alpha.lab.realminfo.com wrote:

> Yup... This:
> 
> 	nwdbm.o: In function `crypt_pw_ok':
> 	nwdbm.c(.text+0x56d8): undefined reference to `crypt'
> 	nwdbm.c(.text+0x56dc): undefined reference to `crypt'
> 	make[2]: *** [nwbind] Error 1
> This is dureing the linking stage.
> I get the same error in a small test prog that I wrote when I try to
> compile it also.

You need to add -lcrypt to your gcc command.  This will link in libcrypt,
which contains the crypt() function.  Without linking to libcrypt, it
won't know what code to include for the crypt() function since it only
links to glibc unless other libraries are included as well with the -l
switch.  For more info on this, check the linker options section in the
info files that came with gcc :)

Hope this helps!

Chris

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

       reply	other threads:[~1998-02-25 18:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.96.980225130110.7331A-100000@alpha.lab.realminfo.com>
1998-02-25 18:09 ` Christopher C Chimelis [this message]
     [not found] <199802251806.NAA24999@rrdjazz.nist.gov>
1998-02-25 20:18 ` Compileing mike
1998-02-25 19:34 Compileing Uncle George
  -- strict thread matches above, loose matches on Subject: below --
1998-02-25 18:06 Compileing Przemek Klosowski
     [not found] <34F455CC.8E667B3E@voicenet.com>
1998-02-25 18:02 ` Compileing mike
1998-02-25 17:33 Compileing Uncle George
1998-02-25 17:17 Compileing mike
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox