From owner-freebsd-questions Thu Jun 11 12:49:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA09115 for freebsd-questions-outgoing; Thu, 11 Jun 1998 12:49:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from Amnesiac.123.org (mcl@Amnesiac.mtl.pl [195.116.4.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA09046 for ; Thu, 11 Jun 1998 12:49:31 -0700 (PDT) (envelope-from mcl@Amnesiac.123.org) Received: from localhost (mcl@localhost) by Amnesiac.123.org (8.9.0/8.9.0.Beta5) with SMTP id VAA22602; Thu, 11 Jun 1998 21:49:07 +0200 (CEST) Date: Thu, 11 Jun 1998 21:49:07 +0200 (CEST) From: Michal Listos To: bgold@reedycreek.com cc: freebsd-questions@FreeBSD.ORG Subject: Re: gcc compiler In-Reply-To: <358021B1.113F0D4A@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 11 Jun 1998, Brian Gold wrote: > I have a basic C program that uses the crypt() function. When I try to > compile it on FreeBSD 2.2.5 I get the error message: > /var/tmp/cc0010551.o: undefined symbol '_crypt' referenced from text > segment Add -lcrypt option. Michal * God used fork() to create Eve. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message