in reply to What is the problem in the following Inline code?

You code is all interpreted as Perl code, since you didn't wrote __END__ and __C__, but _END_ and _C_.

Replies are listed 'Best First'.
Re^2: What is the problem in the following Inline code?
by sanjay nayak (Sexton) on Jan 13, 2009 at 09:05 UTC

    Hi Mortiz

    Many many thanks for the reply.After correcting the code suggested by you. Still i am getting error as follows.

    '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:

    E:\sanjayweb\_Inline\build\inline2_pl_0842

    To debug the problem, cd to the build directory, and inspect the output files.at inline2.pl line 0

    INIT failed--call queue aborted.

    Plz suggest what is the problem with it?


    Regd's
    sanjay
      You need to make sure your copy of nmake.exe is either in the current directory or in a directory in %path%. If you are using Visual Studio it should be in the VC bin directory.
        call vcvars32.bat (or call path\to\msvc\bin\vcvars32.bat) should set all the required env

        Hi Cdarke

        Thanks for the reply.

        But when i put my "Inline.pl" perl program in the VC/bin,where nmake.exe is present. from there i run my perl program in the command prompt. Still i am getting the same error. Plz suggest what to do? How to set path for the nmake.exe in my perl program.

        Regd's
        Sanjay