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

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

Thread Previous
From:
Jonathan Stowe
Date:
June 17, 2001 02:38
Subject:
Re: [ID 20010617.001] Compilation problem when embedding perl in C
Message ID:
Pine.LNX.4.33.0106171034240.28753-100000@orpheus.gellyfish.com
On Sun, 17 Jun 2001, 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 ??
>

You probably need to link libcrypt on Linux - supply -lcrypt in the link
stage of the compilation.

You can determine which extra libs you need with :

   perl -MConfig -e 'print $Config{libs}'

as discussed in perlembed.


/J\
-- 
Jonathan Stowe                      |
<http://www.gellyfish.com>          |      This space for rent
                                    |


Thread Previous


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