Front page | perl.inline |
Postings from August 2001
Can't find auto/main<function_name>.al in @INC...
Thread Next
From:
Tim Kimber
Date:
August 8, 2001 08:07
Subject:
Can't find auto/main<function_name>.al in @INC...
Message ID:
OF79707D10.157B83F0-ON80256AA2.0051D271@portsmouth.uk.ibm.com
I have just started experimenting with Inline, with a view to writing a
Perl interface to some internal C libraries. It will be great if I can get
over the teething problems. I've installed and tested the Inline modules,
and they are fine (ActiveState v620 and VC 6.0, by the way). I can also run
some of the simple examples in the cookbook, including the one which calls
the Win32 MessageBoxA() function.
As a first step, I decided to call a single function in the shared library.
Using the MessageBoxA() example as my template, I ended up with the
following code...
use Inline C => DATA =>
LIBS => -lmqm,
PREFIX => 'my_';
Foo("Name",$1,$2,$3);
__END__
__C__
#include <a header file>
#include <another header file>
void my_Foo(char *InputName, int *param1, int* param2, int* param3) {
Foo(InputName,param1,param2,param3);
}
The compilation step is fine, but perl reports the error "Can't locate
auto/main/Foo.al in @INC"
Any help with this would be appreciated. By the way. I'm no Perl expert,
and I've read about XS, but never used it in anger (I was just about to get
into it when I came across Inline!).
regards,
Tim Kimber, MQSeries Test Team
Internet: kimbert@uk.ibm.com
Tel. 01962-816742
Internal tel. 246742
Thread Next
-
Can't find auto/main<function_name>.al in @INC...
by Tim Kimber