From: Richard Henderson <richard@atheist.tamu.edu>
Subject: Re: Good kernel, bad libs
Date: Fri, 24 Jan 1997 14:41:20 -0600 (CST) [thread overview]
Message-ID: <199701242041.OAA24791@atheist.tamu.edu> (raw)
In-Reply-To: <Pine.SUN.3.95.970123015458.12682A-100000@soleil>
> crypt is not in unistd.h under alpha.
A random sampling of other Unix vendors showed only about half
had crypt in unistd.h, while most had crypt.h as well. As glibc
(like everyone else in this country) is forced to distribute the
crypt functions separately, we decided to keep things clean and
leave it out of unistd.h.
> /tmp/cca081481.o: In function `main':
> filetest.c++(.text+0x8c): undefined reference to `crypt(char const *, char
> const *)'
There are two potential problems here: first your version of crypt.h
doesn't do the C++ extern "C" protection bits, so the external name
of the function is mangled.
Second, did you remember to include -lcrypt on the link line?
r~
--
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
next parent reply other threads:[~1997-01-24 20:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.SUN.3.95.970123015458.12682A-100000@soleil>
1997-01-24 20:41 ` Richard Henderson [this message]
1997-01-23 7:04 Good kernel, bad libs Liam Irish
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