I'm trying to use nmake to complete the perlxstut tutorial. The tutorial tells you to use a batch program named h2xs.bat to create a directory named mytest and populate it with a group of files. It then tells you to run Makefile.pl which prepares a file for use by nmake.exe.
When I run nmake on the folder I get the following error:
"C:\Perl\lib\CORE|perl.h(441): fatal error C1083: Cannot open include file: 'sys/types.h : No such file or directory
NMAKE : fatal error U1077: 'C:\Windows\system32\cmd.exe' : return code '0x2' Stop"
On my machine nmake.exe calls cl.exe with the following parameters:
"cl -c -nologo -01 -MD -Zi -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -01 -MD -Zi _DNDEBUG -DVERSION=\"0.01\" -DNS_VERSION=\"0.01\" -IC:\Perl\lib\CORE mytest.c"
I was originally missing the following files and programs:
msvc and importantly cl.exe (this was installed in C:\program files\microsoft platform sdk\bin\win64)
nmake.exe (this was installed in c:\perl\bin)
PerlCRT.dll (installed in system32 folder)
(and) PerlCRT.lib (copied to Perl's Core directory)
Chances are my system will need to be configured further, but I'm hoping there's not much left.
I installed perl using 'ActivePerl-5.6.1.638-MSWin32 Windows Installer Package', which I downloaded a while ago from CPAN.
I'm stuck, and the features offered by .xs files seem promising. Any help would be appreciated. Thanks.
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.