I had to do
export W=`perl -MExtUtils::Embed -e ccopts -e ldopts `
gcc $W embed.c
and it compiles file
Ramprasad A Padmanabhan wrote:
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
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]