Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

XS, MakeMaker, and all those other dreaded words

by BrentDax (Hermit)
on Mar 01, 2002 at 10:33 UTC ( #148543=perlquestion: print w/replies, xml ) Need Help??

BrentDax has asked for the wisdom of the Perl Monks concerning the following question:

I'm working on my first XS module (it's a wrapper around Parrot's interpreter structure) and I've run into a problem. The Makefile MakeMaker makes isn't compiling my XS code in. Any idea why this is the case?

Thanks.

=cut
--Brent Dax
There is no sig.

  • Comment on XS, MakeMaker, and all those other dreaded words

Replies are listed 'Best First'.
(tye)Re: XS, MakeMaker, and all those other dreaded words
by tye (Sage) on Mar 01, 2002 at 18:12 UTC

    If you had not yet created the *.xs file at the time you ran "perl Makefile.PL", then the generated Makefile would not know that it needed to do anything with the *.xs file.

    Try rerunning "perl Makefile.PL" now that you've created the *.xs in that same directory.

            - tye (but my friends call me "Tye")
Re: XS, MakeMaker, and all those other dreaded words
by beppu (Hermit) on Mar 01, 2002 at 16:14 UTC
Re: XS, MakeMaker, and all those other dreaded words
by mpeppler (Vicar) on Mar 01, 2002 at 17:04 UTC
    Did you start with h2xs to create the XS .pm and Makefile.PL stubs?

    Michael

      My initial command was h2xs -n Parrot::Interp. It generated the .xs file for me. However, when I ran the command again with a different module name, the generated Makefile.PL looked the same.

      =cut
      --Brent Dax
      There is no sig.

        What does your Makefile.PL look like?

        Like the other poster here I just tried it with h2xs -n MP::Test which created the necessary stubs. Running perl Makefile.PL;make; did invoke the compiler on Test.xs for me...

        Michael

        Is that all there was to the command, no other flags? I ran that exact command just now, and the resultant Makefile.PL doesn't appear to reference the XS file, but when I ran "perl Makefile.PL", the resulting Makefile did in fact have all the rules and references to compile and line Interp.xs.

        --rjray

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://148543]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2021-10-18 11:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (73 votes). Check out past polls.

    Notices?