delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/16/18:49:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 17 Jan 2002 00:49:16 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: crypt()
Message-ID: <20020117004916.I2015@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <001801c19ee6$28af7a60$7f6638d4 AT seraphina>
Mime-Version: 1.0
In-Reply-To: <001801c19ee6$28af7a60$7f6638d4@seraphina>
User-Agent: Mutt/1.3.22.1i

On Wed, Jan 16, 2002 at 11:33:10PM -0000, paul AT msunix DOT co DOT uk wrote:
> > hiya,
> > 
> > ive included #include <crypt.h>
> > 
> > and am using crypt() - why can't i compile?
> > 
> > gcc -lcrypt file.c -o file
> > 
> > unresolved linker error (crypt undefined?)

Off-topic since that's just wrong usage of gcc command line.

Anyway, try `gcc file.c -o file -lcrypt'

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019