In other words he said.. In a round about way. Put a reference file in your
make or whatever its called for g++ to include an h file with your crypt
definitions. Like you c file your compiling at the top should be a spot for
#include "crypt.h" or something to that effect. ;-) Did I get that right
Edwin?
Dantin
----- Original Message -----
From: "Edwin Groothuis" <[EMAIL PROTECTED]>
To: "Jason Snuggs" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Tuesday, November 27, 2001 6:20 PM
Subject: Re: Undefined reference to crypt - Read before yelling :)
> On Tue, Nov 27, 2001 at 05:14:00PM -0800, Jason Snuggs wrote:
> > g++ is the compiler in redhat 7.0
> >
> > I tried the library -lcrypt at the end, beginning and middle of the
linker.
> > I tried removing the definition from the makefile and including unistd.h
since that's what the manfile said the function existed in.
> > Tried pointing to /lib/lcrypt.a (or something like this)
> > And a bunch of other little stuff that I don't remember, but did me no
good :)
> >
> >
> > Here's the make message and errors, they're basically the ones right out
of the FAQ and all the other posts people have when first starting ROM and
don't have the lcrypt option set, but I do have it set:
>
> Read "man crypt" and see what it says about what you have to link
> or what you have to do.
>
> For example:
>
> LIBRARY
> Crypt Library (libcrypt, -lcrypt)
> SYNOPSIS
> #include <unistd.h>
>
> char *
> crypt(const char *key, const char *salt);
>
>
>
> Edwin
>
> --
> Edwin Groothuis | Personal website: http://www.MavEtJu.org
> [EMAIL PROTECTED] | Interested in MUDs? Visit Fatal Dimensions:
> ------------------+ http://www.FatalDimensions.org/
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom