Hi All, I want to call a C function from perl program.I am using ActiveState Perl 5.8.9. I installed "Inline" module from ppm(perl package manager)

This is the code which i have written

#!/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" ); }

when I run this code I am getting following error message,

"'nmake' is not recognized as an internal or external command,operable program or batch file.
A problem was encountered while attempting to compile and install your + Inline C code. The command that failed was: nmake > out.make 2>&1
The build directory was: D:\UI\_Inline\build\c_pl_5cd4
To debug the problem, cd to the build directory, and inspect the outpu +t files at D:\UI\c.pl line 0 INIT failed--call queue aborted".

Then I installed "nmake" and copied NMAKE.EXE and namke.ERR files to c:\WINDOWS\System32 and added "c:\WINDOWS\System32;" in the path variable but no use still i am getting the same error

Output file mentioned in the path above D:\UI\_Inline\build\c_pl_5cd4 has the following contents

Unable to find a perl 5 (by these names: D:\Softwares\Perl\Perl5.8\bin +\perl.exe perl.exe perl5.exe perl5.8.9.exe miniperl.exe, in these dir +s: . D:\Softwares\Perl\Perl5.8\site\bin D:\Softwares\Perl\Perl5.8\bin + C:\Perl\site\bin C:\Perl\bin D:\Softwares\bin\ D:\Softwares\Perl\sit +e\bin D:\Softwares\Perl\bin D:\Softwares\Perl\Perl5.10\site\bin D:\So +ftwares\Perl\Perl5.10\bin D:\Softwares\Perl\bin\ D:\Perl\bin\ C:\WIND +OWS\system32 C:\WINDOWS C:\Serena\CHANGE~1\DIMENS~1\9.1\PROG C:\WINDO +WS\system32\WBEM C:\Program Files\IVI\bin C:\VXIPNP\WinNT\Bin C:\VXIP +NP\WinNT\Bin\ C:\WINDOWS\system32\NMAKE.exe D:\Softwares\Perl\Perl5.8 +\bin\perl.exe D:\Softwares\TK\bin C:\Tcl\bin C:\Program Files\Microso +ft Visual Studio\Common\Tools\WinNT C:\Program Files\Microsoft Visual + Studio\Common\MSDev98\Bin C:\Program Files\Microsoft Visual Studio\C +ommon\Tools C:\Program Files\Microsoft Visual Studio\VC98\bin D:\Soft +wares\Perl\Perl5.8\site\lib D:\Softwares\Perl\Perl5.8\bin) Writing Makefile for c_pl_5cd4

Can any body help me in solving this.

Thanks in advance

ch123


In reply to 'nmake' is not recognized as an internal or external command, by ch123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.