Michael Wong3 <[EMAIL PROTECTED]> writes:
>Hi all! I'm absolutely new at extending perl, so please be patient 
>with my question.
>
>I have some absolutely great C code whose functionality (hardware 
>control) I'd love to bring to Perl. It has its own very elaborate 
>Makefile, which I use to produce a C library. 

What does it call the C library?

>For my module, I 
>wrote its Makefile.PL as: 
>
>WriteMakefile(
>       # the stuff that h2xs normally puts in
>
>       'MYEXTLIB'      => 'src/my_lib$(LIB_EXT)'
>);
>
>sub MY::postamble {
>'
>$(MYEXTLIB):   src/Makefile
>       cd src && make my_lib$(LIB_EXT)
>';
>}
>
>would work. 

It should. Provided src/Makefile builds something called my_lib$(LIB_EXT)
(i.e. my_lib.a)

>But when I test my new spiffy module, it complains
>that the method call I made is an unresolved symbol.

What is the unresolved symbol?
Does your C code call _another_ library as well?

>
>So in summary, how does one link a .a file that's not made by
>Makefile.PL for the C code?
>
>I apologize for the vagueness of the question, but I'm think
>that more details would only obscure the nature of the problem.
>
>- m.
-- 
Nick Ing-Simmons
who is looking for a new job see http://www.ni-s.u-net.com/

Reply via email to