Hi,

 

I am having a problem with Inline 0.45. Previously I was using Inline 0.44
in a Windows XP system and it worked well. Recently I dumped my old notebook
and installed Inline 0.45 (and Inline::C and Inline::CPP) in my new notebook
(Windows XP as well) using ppm from the ActiveState package repository. The
prerequisite modules are automatically installed too. Then I installed
MinGW-5.16 from  <http://www.mingw.org/> http://www.mingw.org/ for gcc
compiler and Nmake1.4. But the previous perl codes with inline c insert
cannot be complied. 

 

When I ran the following test.pl code,

 

***********************

use Inline C => <<'END_C';

    

void greet() {

        printf("Hello, world\n");

    }

END_C  

 

greet;

************************

 

The error message is the following. It looks like the obj file was not
generated. 

 

****************************************************************************
*

Set up gcc environment - 3.4.5 (mingw-vista special r3)

 

Microsoft (R) Program Maintenance Utility   Version 1.50

Copyright (c) Microsoft Corp 1988-94. All rights reserved.

 

        C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils\xsubpp  -typemap
C:\Perl\lib\E

xtUtils\typemap  test_pl_0006.xs > test_pl_0006.xsc && C:\Perl\bin\perl.exe
-MEx

tUtils::Command -e mv test_pl_0006.xsc test_pl_0006.c

        gcc -c  -ID:/data/methylation/ACE  -DNDEBUG -DWIN32 -D_CONSOLE
-DNO_STRI

CT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE
-DPERL_IMPLICIT_CONTEXT

-DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX -DHASATTRIBUTE
-fno-stric

t-aliasing -O2    -DVERSION=\"0.00\"  -DXS_VERSION=\"0.00\"
"-IC:\Perl\lib\CORE

"   test_pl_0006.c

Running Mkbootstrap for test_pl_0006 ()

        C:\Perl\bin\perl.exe -MExtUtils::Command -e chmod 644
test_pl_0006.bs

        C:\Perl\bin\perl.exe -MExtUtils::Mksymlists  -e
"Mksymlists('NAME'=>\"te

st_pl_0006\", 'DLBASE' => 'test_pl_0006', 'DL_FUNCS' => {  }, 'FUNCLIST' =>
[],

'IMPORTS' => {  }, 'DL_VARS' => []);"

Set up gcc environment - 3.4.5 (mingw-vista special r3)

        dlltool --def test_pl_0006.def --output-exp dll.exp

        g++ -o blib\arch\auto\test_pl_0006\test_pl_0006.dll -Wl,--base-file
-Wl,

dll.base -mdll -L"C:\Perl\lib\CORE" test_pl_0006.obj
-Wl,--image-base,0x2b150000

  C:\Perl\lib\CORE\perl58.lib -lkernel32 -luser32 -lgdi32 -lwinspool
-lcomdlg32

-ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr
-lwinmm

 -lversion -lodbc32 -lodbccp32 -lmsvcrt dll.exp

g++: test_pl_0006.obj: No such file or directory

NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'

Stop.

 

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:

D:\data\methylation\ACE\_Inline\build\test_pl_0006

 

To debug the problem, cd to the build directory, and inspect the output
files.

 

 at D:\data\methylation\ACE\test.pl line 1

BEGIN failed--compilation aborted at D:\data\methylation\ACE\test.pl line 6.

 

******************************************************************

 

Any people here can kindly give me a hint?

 

Thank you very much.

 

Robbie

 

 

Reply via email to