Ok, first of all thank you all for your responses I appreciate the help.  As to 
the question of what calls I was making all my references to crypt and code 
that included it was stock Rom.  It was just being compiled by g++ instead of 
gcc.  

As to how it got fixed there's two ways that it will work, one as Edwin 
suggested including crypt.h does work.  I did do man before, but only saw to 
include <unistd.h> not crypt.h but when you do that it works.  Also my buddy 
coder found that if you define crypt as an extern "c" in the merc.h file.  Then 
it compiles and works fine that way too.  So either include the right header 
file for c++, or make crypt an C extern and it works right.  

Thanks again to everyone for their help,
Jason

--- "Stainless" <[EMAIL PROTECTED]> wrote:
>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

_____________________________________________________________
wotmania: Your number one source for The Wheel of Time.
http://wotmania.com

Reply via email to