On Tue, 27 Nov 2001, Jason Snuggs wrote:

> Ok, this isn't the one straight out of the FAQ I promise.  Although I
> imagine it's about as dumb.  It goes with my previous one of trying to
> get ROM to compile all in c++ rather than c, which I've been able to do
> up to the point where for some reason it won't link with lcrypt.  I have
> that in my libs and it is after all the object files when linking.  It
> was also working when the mud was being compiled in c rather than c++,
> so it's something to do with the conversion.  So is there something I
> need to do differently with the crypt library due to the c++
> compilation.
> 
> Thanks,
> Jason
> 

You have two options.

a) Remove the crypt() declaraction from merc.h and include the crypt.h
header explicitely (which is what everyone SHOULD do anyway)

b) Change the crypt() declaration to put extern "C" {} around it.

extern "C" {
char *crypt(const char *key, const char *salt);
}

-- 
Bobby "Chil" Bailey           | "The only source of knowledge is
Coders' Forum Moderator       |  experience."  -- Albert Einstein
Coder's Repository Admin      | Dark Saghani! http://saghani.com
http://www.kyndig.com/        | #Rom on IRC! irc.acestar.org:6667
Welcome To Your New Addiction | PGP Keys: http://chil.kyndig.com/pgp


Reply via email to