develooper Front page | perl.beginners | Postings from December 2002

perl embed problem

Thread Next
From:
Ramprasad A Padmanabhan
Date:
December 8, 2002 23:57
Subject:
perl embed problem
Message ID:
3DF44CE5.50500@ho.netcore.co.in
hello all

  I think i am missing out something very small but not able to figure 
that out

I have a very small c script ( taken from advanced perl by sriram 
srinivasan )

I am trying to compile it as given in the book and am not able to

I am using gcc on redhat 7.2

gcc -I/usr/lib/perl5/5.6.0/i386-linux/CORE/ 
-L/usr/lib/perl5/5.6.0/i386-linux/CORE/ -lperl -lm embed.c

And I am getting errors

/tmp/cckJEWsQ.o: In function `main':
/tmp/cckJEWsQ.o(.text+0x1f): undefined reference to `perl_alloc'
/tmp/cckJEWsQ.o(.text+0x34): undefined reference to `perl_construct'
/tmp/cckJEWsQ.o(.text+0x50): undefined reference to `perl_parse'
/tmp/cckJEWsQ.o(.text+0x76): undefined reference to `perl_call_argv'
/tmp/cckJEWsQ.o(.text+0x87): undefined reference to `perl_destruct'
/tmp/cckJEWsQ.o(.text+0x98): undefined reference to `perl_free'


just like as if I had not included the libraries
Do I have to use any other option too
thanks
Ram


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