ActiveState Powered by ActiveState

ActiveState Community


XS Code does not work

Posted by roberthenniger on 2008-02-07 10:28

Hi to all.
Today I tried to compile my script to an .NET DLL.
This script uses HTML::Template::Pro. The compile process works well.
When I try to use this dll then I get the following message:

Unhandled Exception: PerlRuntime.PerlException: Can't locate auto/HTML/Template/Pro/query.al in @INC (@INC contains: .... .)

I ve searched for this file but i found nothing. I also contacted the author of the module but i am still waiting for a feedback.
Maybe someone can help me and explain what a .al file do and why it is needed.

Is there something i have to change when i use modules with xs parts?

The same script with HTML::Template works well but is very slow.
Thats why i wanna try this module.

Thanks in advance.

Best regards
Robert

PS:
+ PDK 7.0
+ Perl 5.8.6 Build 806
+ HTML::Template::Pro 0.61 (i know that there is a update, but i have not found a ppd for it)

grahams | Fri, 2008-04-18 16:42

Likely it is a difference in how the HTML::Template::Pro calls libraries which it depends on. Modules loaded at runtime using 'require' or 'do' can't be resolved by PerlApp at compile time. You should investigate the use of the --add option to force the inclusion of any missing libraries.

On Windows you can also use the --bind option to force the inclusion of libraries which can't be loaded through the standard dynaloader or xsloader mechanisms.

-->