K
kj
One of the modules I use is a (huge) XS extension (say Foo.pm).
Unfortunately, this module is missing some functions that I need,
and that, for performance reasons, I need to code in C. These
functions are quite simple, so I thought I'd do this with Inline::C.
Unfortunately, I'm not getting very far.
I use the following in my code:
use Inline C => Config =>
INC => '-I/path/to/header/files',
LIBS => '-L/path/to/arch/auto/Foo -lFoo',
TYPEMAPS => '/path/to/Foo/typemap';
use Inline C => <<'EOCODE';
/* my C code */
EOCODE
Still the compiler complains that it cannot find certain functions
that are required by Foo's typemap file. These functions are
defined in the library Foo.so, which resides in /path/to/arch/auto/Foo,
but, despite the code above, the compiler compains of not being
able to find it. What am I doing wrong?
Thanks!
kj
Unfortunately, this module is missing some functions that I need,
and that, for performance reasons, I need to code in C. These
functions are quite simple, so I thought I'd do this with Inline::C.
Unfortunately, I'm not getting very far.
I use the following in my code:
use Inline C => Config =>
INC => '-I/path/to/header/files',
LIBS => '-L/path/to/arch/auto/Foo -lFoo',
TYPEMAPS => '/path/to/Foo/typemap';
use Inline C => <<'EOCODE';
/* my C code */
EOCODE
Still the compiler complains that it cannot find certain functions
that are required by Foo's typemap file. These functions are
defined in the library Foo.so, which resides in /path/to/arch/auto/Foo,
but, despite the code above, the compiler compains of not being
able to find it. What am I doing wrong?
Thanks!
kj