Hi All,
I am trying to embed the perl script in my C program (as per perlembed) . I tried running the examples using perl interpreter and it works fine. When I try embedding one of the examples(colors.pl) in C then I am getting the following error
Can't load module IO, dynamic loading not available in this perl.
(You may need to build a new perl executable which either supports
dynamic loading or has the IO module statically linked into it.)
at /usr/local/lib/perl5/5.8.0/aix/IO/Handle.pm line 256
Compilation failed in require at /usr/local/lib/perl5/5.8.0/aix/IO/Handle.pm line 256.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.0/aix/IO/Handle.pm line 256.
Compilation failed in require at /usr/local/lib/perl5/5.8.0/aix/IO/Seekable.pm line 101.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.0/aix/IO/Seekable.pm line 101.
Compilation failed in require at /usr/local/lib/perl5/5.8.0/aix/IO/File.pm line 112.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.8.0/aix/IO/File.pm line 112.
Compilation failed in require at /usr/local/lib/perl5/5.8.0/FileHandle.pm line 9.
Compilation failed in require at Spreadsheet/WriteExcel/OLEwriter.pm line 18.
BEGIN failed--compilation aborted at Spreadsheet/WriteExcel/OLEwriter.pm line 18.
Compilation failed in require at Spreadsheet/WriteExcel/Workbook.pm line 19.
BEGIN failed--compilation aborted at Spreadsheet/WriteExcel/Workbook.pm line 19.
Compilation failed in require at Spreadsheet/WriteExcel.pm line 17.
BEGIN failed--compilation aborted at Spreadsheet/WriteExcel.pm line 17.
Compilation failed in require at colors.pl line 12.
BEGIN failed--compilation aborted at colors.pl line 12.
My C code snippet
-----------------
void fillcolor()
{
char *args[] = { NULL };
dSP;
printf ("Calling perl function\n");
call_argv("fillcolor", G_EVAL, args);
printf ("Calling perl function.. returned\n");
}
perl version - 5.8.0.
Operating system - Aix 4.33
Architecture - x86 32 bit (does it make any difference on 64bit versions ?)
Looking for your suggestions.
Thanks and Regards,
Karthic