rajiyer has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am using ActivePerl 5.6.1 Build 635.
I have written C code that would invoke some Perl function that uses extension modules (like PerLDAP).
This program works fine as long as it picks up perl56.dll from the Perl installation folder (say C:\Perl\bin). But if I copy the same perl56.dll to the folder containing my executable, then, I get an error saying:
@INC contains only ..Hence cannot find the extension module.
Any guesses why?
Regards,
Raj
Re: Perl Embeded inside C
by defyance (Curate) on Apr 09, 2003 at 15:16 UTC
|
I don't know much about Win32 and Perl, but it sounds like the list that Perl looks at to find important things, @INC, looks for perl56.dll in C:\Perl\bin. When you move it you have to tell it where to find perl56.dll, maybe you could try
use lib("/path/to/perl56.dll");
at the top of your Perl program.
Just a thought.
--
Can't never could do anything, so give me and inch, I'll make it a mile. | [reply] [d/l] |
Re: Perl Embeded inside C
by jand (Friar) on Apr 09, 2003 at 19:43 UTC
|
| [reply] |
|