develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [ID 20010617.001] Compilation problem when embedding perl in C

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
August 21, 2001 05:54
Subject:
Re: [ID 20010617.001] Compilation problem when embedding perl in C
Message ID:
20010821135429.A82818@plum.flirble.org
On Sun, Jun 17, 2001 at 01:42:55AM -0700, HIMANSHU GOEL wrote:
> Hi !
> 
> I am using perl (version 5.005_03 built for
> i386-linux)
> I tried to embed the perl interpreter in C program as
> given in man page of perlembed.
> 
> I got the following error message and couldn't able to
> compile the program :
> 
> /usr/lib/perl5/5.00503/i386-linux/CORE/libperl.a(pp.o):
> In function `Perl_pp_crypt':
> pp.o(.text+0x5933): undefined reference to `crypt'
> collect2: ld returned 1 exit status   
> 
> 
> WHAT is the problem ??

Did anyone reply to this bug report?

I don't know for sure what the problem is, but if you add -lcrypt to the
link line, does that solve the problem?
[Sorry if this suggestion is too late to help you now]

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About