Hi,

I have successfully packaged the hello world script by hard coding the
function into a .pm file.

Now I am trying to create a perl package that uses Inline C to import a
hello world function from a header file.
I have been successful importing this same code into a perl script.
I keep getting the following errors:

<-----------------------Information
Section----------------------------------->

Information about the processing of your Inline C code:

Your source code needs to be compiled. I'll use this build directory:
/home/bbcannon/shell/perl/inlineC/_Inline/build/MATLAB/HW

and I'll install the executable as:
/home/bbcannon/shell/perl/inlineC/_Inline/lib/auto/MATLAB/HW/HW.so

No C functions have been successfully bound to Perl.


<-----------------------End of Information
Section---------------------------->
Can't locate auto/HW/hey.al in @INC (@INC contains: 
/home/bbcannon/shell/perl/inlineC/_Inline/lib /home/bbcannon/shell/perl 
/proj/codev/shell/perl /usr/micron/perl/lib
/usr/local/lib/perl5/5.00503/sun4-solaris
 /usr/local/lib/perl5/5.00503
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris
 /usr/local/lib/perl5/site_perl/5.005 .) at hw.pl line 12

my perl package looks like:

package HW;

use strict;
require Exporter;

@HW::ISA = qw(Exporter);
@HW::EXPORT = qw(hey);

use Inline (
        C => DATA => 
              NAME     => 'MATLAB::HW',
              MYEXTLIB => ["/r1u3/matlab/extern/lib/sol2/libmmfile.so"],
              INC      => ["-I/r1u3/matlab/extern/include/",
                           "-I/home/bbcannon/shell/perl/MATLAB/"]
              
            );
                 
1;

__DATA__
__C__

#include <libmmfile.h>
#include "libhey.h"
#include "libhey.c"
#include "hello.c"
#include "matlab.h"


void hey(void) {

   libheyInitialize();
   
   mlfHello();
   
   libheyTerminate();
}


And the script I'm calling the funtion from looks like:

#!/usr/local/bin/perl 

use strict;
use HW;
S
hey();


Can anyone see anything I've done wrong?


Thanks...
Brady Cannon
Modeling Intern
R&D Engineering Support
phone: x31645
pager: 99315

Reply via email to