Re: New Topic

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> Date: Fri, 7 Mar 2008 14:58:12 +0530 (IST)
> From: Subramanya Mujumdar <[email protected]>
> Cc: [email protected]
> 
>  mkmf is a perl file with ext .pl .
>  When I fire "mkmf  -tc -tj -os nt"  from the command prompt and from a test.pl script, its working fine.
> 
> I have the below settings done in the cmd ...
> ASSOC .pl=PerlScript
> 
> FTYPE PerlScript=perl.exe "%1" %*
> set PATHEXT=.pl;%PATHEXT%
> 
> test.pl
> system("mkmf  -tc -tj -os nt");

The Windows port of Make does not look at PATHEXT, so it does not know
that it should invoke Perl to run mkmf.  It looks for a command named
"mkmf" with known extensions (.pl is not one of them), and doesn't
find it.

To work around this, invoke Perl explicitly, like this:

  perl -e mkmf -tc -tj -os nt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.