You need to add a headerfile definition. Some things changed in the
libraries.
I do not remember which header file, but just grep thru the header files
and
you will find it.
Hans
Peter Csaba wrote:
>
> Hello,
>
> I'm a new member of this list, and I have a problem with my RedHat
> 5.0. I just installed on my computer RedHat 5.0 with gcc ver. 2.7.2.3.
> I tryed to compile a simple c file:
> #define _XOPEN_SOURSE
> #include <stdio.h>
> #include <unistd.h>
>
> void main(){
> printf("%s", crypt("hello","C1"));
> }
> and I'm receiving the following error message:
> In function main undefined reference to "crypt".
> What can be the problem? ( I can't compile eaven the httpd,
> because I got the same error message ).
>
> Thank you for your help,
> Peter
>
>
> Date: Mon Mar 16 12:27:50 1998 <>
> ------------------------------------------------------------------------------
> Peter Csaba E-mail: [EMAIL PROTECTED]
> str. Gheorghe Doja 181/A/15 Home Page: http://www.uttgm.ro/~cpeter
> 4300, Targu Mures
> ROMANIA
>
> --
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
> To unsubscribe: mail [EMAIL PROTECTED] with
> "unsubscribe" as the Subject.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.