From: Liam Irish <lirish@soleil.acomp.usf.edu>
Subject: Good kernel, bad libs
Date: Thu, 23 Jan 1997 02:04:20 -0500 (EST) [thread overview]
Message-ID: <3cf641da39aaab6b3d42b626e4b568d0.axp-list@archive.invalid> (raw)
Thanks for the help with the kernel. It works, now:
I am trying to write a password encryption program. Here is a sample.
This compiles fine and works under x86 linux:
#begin code
1 //testing out encryption streams
2 #include <fstream.h>
3 #include <unistd.h>
4 void main()
5 {
6 ofstream of("..passwdfile");
7 of<<crypt("Simon","ff")<<"\n"
8 }
crypt is not in unistd.h under alpha. It apparently is in crypt.h (which
I changed the alpha version to include), however, using that yields this
error:
/tmp/cca081481.o: In function `main':
filetest.c++(.text+0x8c): undefined reference to `crypt(char const *, char
const *)'
filetest.c++(.text+0x90): undefined reference to `crypt(char const *, char
const *)'
I am assuming maybe I am missing a .o file or something, but would rather
not mess with my libraries unless I must. Must I? Thanks.
Liam
--
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 reply other threads:[~1997-01-23 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-23 7:04 Liam Irish [this message]
[not found] <Pine.SUN.3.95.970123015458.12682A-100000@soleil>
1997-01-24 20:41 ` Good kernel, bad libs Richard Henderson
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