Joe,
About your consult:

        I've been using the crypt() command to verify users, against 
        a passwd file
        in my programs,   However, now that i Upgraded to RedHat 5.0
        this Command Now Just Spits Out Errors(on compilation)!   I 
        have to put it
        back on the old machine to compile,
        then move the binary back...  (PAIN.)  old machine was RedHat 
        4.0 & 3.0 (both work)

        reading the MAN-PAGES,  i added this, (only difference i could find.)
        #define _XOPEN_SOURCE

        and i keep getting this new compiler error:
        /tmp/cca038241.o: In function `CheckPassword':
        /tmp/cca038241.o(.text+0x18f): undefined reference to `crypt'

        if anyone could share some wisdom,  it would be appreciated!! 
        (Source Below)

Most systems require you to include "-lcrypt" in your compile command.
$ gcc -lcrypt .....

Bye

--
Antonio Mendez A.
email: [EMAIL PROTECTED]
SysAdmin - BolNet

Reply via email to