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

Hi what should i need to run inline c ?
i have inslalled the inline module from a ppm , on winxp, perl activestate 5.10
when i have tried this code:
#!/usr/bin/perl -w use Inline C; use strict; hello_inline(); __END__ __C__ #include <stdio.h> void hello_inline( ) { printf( "Hello World. Best Regards from Inline\n" ); }
it gives me a message:'nmake' is not recognized as an internal or external command.
when i have downloaded and put the nmake in the same folder as the perl program i have the message:
To debug the problem, cd to the build directory, and inspect the output files.
at x.pl line 0
INIT failed--call queue aborted.
do i need a C compiler? and what compiler i need?
can someone post a detailed info for the totally beginners !!
thanks

Replies are listed 'Best First'.
Re: Inline C preliminaries
by Anonymous Monk on Jul 07, 2009 at 08:17 UTC
    You need ppm install MinGW that will install MinGW/gcc compiler
      Thank you very much
      ppm install MinGW have worked, i can now use inline c
      best wishes
Re: Inline C preliminaries
by missingthepoint (Friar) on Jul 07, 2009 at 08:28 UTC

    You could also grab it from here and put it in c:\windows (or another directory in your %PATH%).

    This page also looks helpful, and you can try searching the Monastery for the error message as well.


    The zeroeth step in writing a module is to make sure that there isn't already a decent one in CPAN. (-- Pod::Simple::Subclassing)