Menu

compile error

2003-05-19
2003-05-20
  • Brian Fitzgerald

    What's up with this compile error?

    H:\download\Win32-TaskScheduler2.0.2\TaskScheduler>nmake

    Microsoft (R) Program Maintenance Utility Version 7.00.9466
    Copyright (C) Microsoft Corporation.  All rights reserved.

    cp Example.pl blib\lib\Win32\Example.pl
    cp TaskScheduler/Win32-TaskScheduler/Win32-TaskScheduler.ppd blib\lib\Win32\Task
    Scheduler\Win32-TaskScheduler\Win32-TaskScheduler.ppd
    cp TaskScheduler/Win32-TaskScheduler/Win32-TaskScheduler.tar.gz blib\lib\Win32\T
    askScheduler\Win32-TaskScheduler\Win32-TaskScheduler.tar.gz
    cp trigger.pl blib\lib\Win32\trigger.pl
    cp runTime.pl blib\lib\Win32\runTime.pl
    cp TaskScheduler.pm blib\lib\Win32\TaskScheduler.pm
            C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib C:\Perl\lib\ExtUtils/xs
    ubpp  -typemap C:\Perl\lib\ExtUtils\typemap TaskScheduler.xs > TaskScheduler.xsc
    && C:\Perl\bin\perl.exe -IC:\Perl\lib -IC:\Perl\lib -MExtUtils::Command -e mv T
    askScheduler.xsc TaskScheduler.c
    Please specify prototyping behavior for TaskScheduler.xs (see perlxs manual)
            cl -c  -nologo -O1 -MD -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DE
    S_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DPERL_MSVCRT_READFIX -O1 -
    MD -DNDEBUG    -DVERSION=\"2.0.2\"  -DXS_VERSION=\"2.0.2\"  -IC:\Perl\lib\CORE -
    TP TaskScheduler.c
    TaskScheduler.c
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(19
    25) : warning C4002: too many actual parameters for macro 'PerlProc_abort'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(19
    25) : error C2059: syntax error : '('
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(19
    25) : error C2238: unexpected token(s) preceding ';'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    24) : warning C4002: too many actual parameters for macro 'PerlLIO_open'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    24) : error C2059: syntax error : '('
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    24) : error C2238: unexpected token(s) preceding ';'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    38) : warning C4003: not enough actual parameters for macro 'PerlSock_send'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    38) : error C2059: syntax error : '('
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    38) : error C2238: unexpected token(s) preceding ';'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    40) : warning C4002: too many actual parameters for macro 'PerlProc_abort'
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    40) : error C2059: syntax error : '('
    c:\Program Files\Microsoft Visual Studio .NET\Vc7\PlatformSDK\Include\MsXml.h(96
    40) : error C2238: unexpected token(s) preceding ';'
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.

     
    • Umberto Nicoletti

      Compile is not supported on Visual Studio .NET. Please use VS 6.
      The reason is that the extension needs to be compiled with the same compiler that was used to compile Perl and Activestate uses VC++6.

      You can always:
      1) compile perl and extension with .net
      2) grab a binary from taskscheduler website that works with your version of perl (currently 5.6 and 5.8 are supported)
      3) compile taskscheduler with vc++ 6

      Regards,
      Umberto

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.