This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Newbie questions... (crypt())
- To: egcs at cygnus dot com
- Subject: Newbie questions... (crypt())
- From: Ben Greear <greear at cyberhighway dot net>
- Date: Sat, 18 Jul 1998 17:26:12 -0700 (MST)
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