This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crypt()


On Wed, Jan 16, 2002 at 11:33:10PM -0000, paul@msunix.co.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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]