From owner-freebsd-questions Sun Sep 10 22:43:26 2000 Delivered-To: freebsd-questions@freebsd.org Received: from giroc.albury.net.au (giroc.albury.NET.AU [203.15.244.13]) by hub.freebsd.org (Postfix) with ESMTP id 48A0337B423 for ; Sun, 10 Sep 2000 22:43:19 -0700 (PDT) Received: (from nicks@localhost) by giroc.albury.net.au (8.9.3/8.9.3) id QAA05261; Mon, 11 Sep 2000 16:43:07 +1100 (EST) Date: Mon, 11 Sep 2000 16:43:07 +1100 From: Nick Slager To: "Hemanth K. Manda" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Crypt !! Message-ID: <20000911164307.E20182@albury.net.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from manda@BPA.Arizona.EDU on Sun, Sep 10, 2000 at 10:35:13PM -0700 X-Homer: Whoohooooooo! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Hemanth K. Manda (manda@BPA.Arizona.EDU): > I am a newbie to unix and am facing a simple problem. I have a C > program which uses crypt() on my university account. It compiles and > get executed without a problem. However when I tried to compile the > same on FreeBSD, it gives an error indicating that the system cannot > resolve crypt(). pwd.h is the only header I have other than stdio.h. > Is there anything I need to add to my program in order to get it > compiled. Are you linking with the libcrypt library? ie: % cc -lcrypt -o myprog myprog.c Nick. -- From a Sun Microsystems bug report (#4102680): "Workaround: don't pound on the mouse like a wild monkey." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message