Alright, I've had enough.  I can't get this thing to compile.  It seems
that as soon as I start specifying configuration variables for Inline, the
perl interpreter immediately loses any ability to recognize my code:

#!/usr/intel/bin/perl -w

use Inline C => Config => INC => '-I /usr/guest/olsenc/work/virgelo/perl 
-I/usr/guest/olsenc/work/virgelo -I/afs/pdx/proj/otools/src/kazlib-1.20';# , NAME => 
"Virgelo";

printf ("output is %s\n", mytest ("/tmp/no_ports.v"));

__END__
__C__
#include "/usr/guest/olsenc/work/virgelo/vpl.h"

char *mytest(char *filename) {
    int status = 0;
    hash_t* modules = 0;

    status = vpl_parse_file(&modules, filename);
    printf("Parse result of virgelo is %d and hash is %d\n", status,
           modules);

    return modules;
}

The result of running this is:

Undefined subroutine &main::mytest called at ./Virgelo line 5.

So, I tried calling Virgelo::mytest, making sure that I named the package
using the Config variable.

If I take away ALL configuration options, it starts actually building the
module but fails to compile because it can't find various header files.
Using this INC option has done nothing but create headaches for me.

Any ideas?

-Clint

Reply via email to