m***@yahoo.com
2008-04-28 05:41:49 UTC
Hello,
Perl XS guys please provide some insight n advice ....
I'm developing an app that is embedding perl for some web scarping. I
developed an perl extension that has to callback into my C++ code
while running inside embedded interpreter. If I dynamically link the
perl extension as a .dll then the xsub in the perl extension gets
called correctly and does what I need it to do.
However, if I statically link the perl extension and then link that
with my Visual C++ app with the embedded perl interpreter inside, my
xsub never gets called ?? The linking process completes and there are
no unresolved external symbols. But when my perl code calls the xsub I
get an error message saying 'undefined subroutine' in perl.
The problem is with my static build of my perl extension. I need to
distribute my app and I want to eliminate the dependency on a .dll
perl extension, that is why I am build a static .lib file of my perl
extension. Anybody have any idea about please help. I would greatly
appreciate it.
Thanks.
Best regards to all.
Manoj.
Perl XS guys please provide some insight n advice ....
I'm developing an app that is embedding perl for some web scarping. I
developed an perl extension that has to callback into my C++ code
while running inside embedded interpreter. If I dynamically link the
perl extension as a .dll then the xsub in the perl extension gets
called correctly and does what I need it to do.
However, if I statically link the perl extension and then link that
with my Visual C++ app with the embedded perl interpreter inside, my
xsub never gets called ?? The linking process completes and there are
no unresolved external symbols. But when my perl code calls the xsub I
get an error message saying 'undefined subroutine' in perl.
The problem is with my static build of my perl extension. I need to
distribute my app and I want to eliminate the dependency on a .dll
perl extension, that is why I am build a static .lib file of my perl
extension. Anybody have any idea about please help. I would greatly
appreciate it.
Thanks.
Best regards to all.
Manoj.