http://qs1969.pair.com?node_id=517143

jithoosin has asked for the wisdom of the Perl Monks concerning the following question:

Hi monks,
I am calling a perl subroutine from a C file and the perl file uses "USE DBI". When i executed the C file i got the error
dynamic loading not available in this perl. (You may need to build a new perl executable which either supports dynamic loading or has the Socket module statically linked into it.)
Then i went through "Using Perl modules, which themselves use C libraries, from your C program" in perlembed to read about the error. The perl subroutine which i call from C file call many other perl modules . Could some one help me on this matter.These were the sequence of command i tried out to correct the error
perl -MExtUtils::Embed -e xsinit -- -o perlxsi.c % cc -c perlxsi.c `perl -MExtUtils::Embed -e ccopts` % cc -c interp.c `perl -MExtUtils::Embed -e ccopts` % cc -o interp perlxsi.o interp.o `perl -MExtUtils::Embed -e ldopts`
But even after these kind of compilation the error remained the same. Could some one help me in this matter (interp.c is the name of my C file)