On Tue, Sep 02, 2003 at 05:55:21PM +0200, Patrik Jacoby wrote:
> hello,
> i'm trying to use some c functions via perl using inline. It seems that 
> my script is well I get an
> 
> Finished Build Compile Stage
> 
> but after that perl is not able to locate my .al file for my function. 
> Until now I can't locate by myself. But I don't see any errors or 
> warnings - nothing. Can somebody help me out ?. I'm new to perl but not 
> to C.
> 

Hi,
   it sounds like Inline isn't binding the functions correctly to perl.
If you run Inline in INFO mode it will tell you which functions get bound.
You can do this with "perl -MInline=INFO script.pl" or  "perl -MInline=INFO
Module.pm"

You should see something like : 

The following Inline C function(s) have been successfully bound to Perl:
        SV * cdbt_getpi_description(int price_index)
                int cdbt_prices_init()

If the functions you want aren't listed here the problem is probably
related to the type of the parameters or return value. For example Inline
only likes void as a return value so if I had declared my function
int cdbt_prices_init(void) then Inline wouldn't have bound it.

I hope this is some help
Peter

-- 
We envision to conveniently engineer seven-habits-conforming information 
while continuing to synergistically leverage other's unique opportunities 
to exceed customer expectations

Reply via email to