Hello,
I am trying to incorporate hello world into a package by including a header
file with the helloworld function.
I keep getting the following error messages:
yup
<-----------------------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/_Inline/build/MATLAB/HW
and I'll install the executable as:
/home/bbcannon/shell/perl/_Inline/lib/auto/MATLAB/HW/HW.so
No C functions have been successfully bound to Perl.
<-----------------------End of Information
Section---------------------------->
Can't locate auto/MATLAB/HW/help.al in @INC (@INC contains:
/home/bbcannon/shell/perl/_Inline/lib /home/bbcannon/shell/perl/
/home/bbcannon/shell/perl/MATLAB/ /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 13
And the code I am using is:
package MATLAB::HW;
use strict;
#use vars qw($VERSION @ISA @EXPORT);
require Exporter;
#@ISA = qw(Exporter);
#@EXPORT = qw(myHelloP help);
@MATLAB::HW::ISA = qw(Exporter);
@MATLAB::HW::EXPORT = qw(myHelloP help);
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 help(void) {
printf("help me\n");
}
/* Prototype for mlfHello */
void myHelloP( void ){
/* Get any command line parameter. */
libheyInitialize(); /* Initialize the library of M-Functions */
/* Call mlfHey, the compiled version of hello.m. */
mlfHello();
libheyTerminate(); /* Terminate the library of M-functions */
}
And the script I'm using it with:
#!/usr/local/bin/perl
use strict;
use lib '/home/bbcannon/shell/perl/MATLAB/';
use lib '/home/bbcannon/shell/perl/';
use MATLAB::HW;
print "yup\n";
help();
&myHelloP();
Any input on this would be greatly appreciated.
Thank You.
Brady Cannon