Newbie questions... (crypt())

Ben Greear greear@cyberhighway.net
Sat Jul 18 17:29:00 GMT 1998


I just installed redhat 5.1 (Intel).  It comes with egcs, so I thought
I'd give it a whirl.  It caught several (non-fatal) mistakes in my code,
so I'm already impressed with it!

However, I use the crypt method:  char* crypt(const char*, const char*)
in my program.  egcs does not like it.  I popped up the man page, and
it says you need to #define _XOPEN_SOURCE
and #include <unistd.h>

I tried this, and still no luck.  Any information would be appreciated..

Ben

Ben Greear (greear@cyberhighway.net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html




More information about the Gcc mailing list