Hi Monks
I am intrested to integrate the C code in my perl program,so i try to execute a small program on INline.
#!C:/perl/bin/perl.exe -w
#!/usr/bin/perl -w
use strict;
use Inline C => <<END_OF_C;
int add(int x, int y) {
return x+y;
}
END_OF_C
print add(3, 4), "\n";
First it ask me load the Inline Pm ,so i install it in my system .Now the program execute but gives some error.
Error:
'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:
G:\PERL\MD5\_Inline\build\Perl_c_pl_5719
To debug the problem, cd to the build directory, and inspect the output files.
at Perl_c.pl line 5
BEGIN failed--compilation aborted at Perl_c.pl line 9.
I am not clear about the above error.so i want to know what exactly the problem is.Any help will help me a lot
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.