is there a way to get one Inline C block to see a symbol defined in another?
none of my shots-in-the-dark with the "extern" keyword have worked, and I
don't want to create a formal external shared library (although that is the
course I am going to take if nobody can tell me how to make the following
do what I want.)

Currently the following program gives me

perl: symbol lookup error: /.../_Inline/lib/auto/one_12ed/one_12ed.so:
undefined symbol: in_two



---- SNIP FROM HERE TO __END__
package one;

use Inline C => <<ONE;

        SV* in_two();

        void invoke(){
                printf("invoked and got <<%s>>\\x0a", SvPV_nolen(in_two()));
        };

ONE


package two;

use Inline C => <<TWO;


        SV* in_two(){
                return newSVpv("defined in one::two",0);
        };


TWO

package mumble;

        one::invoke();

__END__
--
David L Nicol
Can you remember when vending machines took pennies?

Reply via email to