Note that there are some explanatory texts on larger screens.

plurals
  1. POInline::C build failure
    primarykey
    data
    text
    <p>I am using active perl 5.14.2. Here I am trying to use a windows C library in my perl code using Inline::C</p> <pre><code>use strict; use Inline C =&gt; DATA =&gt; CCFLAGS =&gt; '-std:C99 -Tx86-coff -Zi -Ob1 -fp:precise -W1 -Gd -Ze -Go -D_USER_SPACE_' =&gt; INC =&gt; '"-ID:\test\incl"' =&gt; LIBS =&gt; '"-LD:\test\lib" -llib1 -llib2 -llib3 -llib4'; test(); __END__ __C__ #include &lt;incl/hd1.h&gt; #include &lt;stdio.h&gt; #define __STDC_FORMAT_MACROS #include &lt;inttypes.h&gt; void test(void) { ......... </code></pre> <p>While I am trying to run the script its failing with below error</p> <pre><code>Warning. No Inline C functions bound to Perl in .\test.pl Check your C function definition(s) for Inline compatibility Microsoft (R) Program Maintenance Utility Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl5.14\bin\perl.exe C:\Perl5.14\lib\ExtUtils\xsubpp -typemap "C:\Perl5.14\lib\ExtUtils\typemap" test_pl_7fbb.xs &gt; test_pl_7fbb.xsc &amp;&amp; C:\Perl5.14\bin\perl.exe -M ExtUtils::Command -e "mv" -- test_pl_7fbb.xsc test_pl_7fbb.c cl -c -I"D:/test" "-ID:\test\incl" -std:C99 -Tx86-coff -Zi -Ob1 -fp:precise -W1 -Gd -Ze -Go -D_USER_SPACE_ -MD -Zi -DNDEBUG -O1 -DVERSIO N=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\Perl5.14\lib\CORE" test_pl_7fbb.c NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\cl.EXE"' : return code '0xc0000135' Stop. A problem was encountered while attempting to compile and install your Inline C code. The command that failed was: C:\PROGRA~2\MICROS~1.0\VC\bin\nmake.exe &gt; out.make 2&gt;&amp;1 The build directory was: D:\test\_Inline\build\test_pl_7fbb To debug the problem, cd to the build directory, and inspect the output files. at .\test.pl line 0 ...propagated at C:/Perl5.14/site/lib/Inline/C.pm line 772. INIT failed--call queue aborted. PS D:\cmapl_test&gt; perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2011, Larry Wall Binary build 1402 [295342] provided by ActiveState http://www.ActiveState.com Built Oct 7 2011 15:49:44 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. </code></pre> <p>I tried to build the test_pl_7fbb.c file using the command:</p> <pre><code>cl -c "-ID:\test" "-ID:\test\include" -std:C99 -Tx86-coff -Zi -Ob1 -fp:precise -W1 - Gd -Ze -Go -D_USER_SPACE_ -MD -Zi -DNDEBUG -O1 "-DVERSION=0.00" "-DXS_VERSION=0.00" "-IC:\Perl5.14\lib\CORE" test_pl_7fbb.c </code></pre> <p>It got completed without error.</p> <p>My guess the option -I"D:/test" used by Inline while compiling is causing the issue. </p> <p>Thanks in advance for any help on this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload