----- Original Message ----- 
From: "liang nan" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Thursday, June 15, 2006 6:14 PM
Subject: Questions about inline::Java


> hi folks:
> i got a problem with inline::java on win32, can anyone help me please!
> the logs are:
> > gcc -c "-IC:\j2sdk1.4.1_07\include" "-IC:\j2sdk1.4.1_07\include\win32"
>
> -g -O3 -W3 -fno-strict-aliasing -DWIN32 -D_CONSOLE -DNO_STRICT -DHAVE_DES_
FCRYP
> >
T -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_REA
DFIX
> > -DVERSION=\"0.51\" -DXS_VERSION=\"0.51\" -DHASATTRIBUTE
"-IC:\PXPerl\lib\C
> > ORE" PerlNatives.c
> > cc1.exe: unrecognized option `-W3'
> > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code
> '0x1'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code
> '0x2'
> > Stop.
> > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code
> '0x2'
> > Stop.
> >
> > C:\PXPerl\modules\Inline-Java-0.51>
>

Not so sure that I can help - but there's a couple of things that puzzle
me - things that might (or might not :-) have a bearing on your problem.

First thing that seems strange is the reference to 'cc1.exe'. I can't recall
ever seeing that on  Win32 before. The normal port of gcc for (native) win32
is the MinGW port, and it doesn't include a 'cc1.exe' as far as I know.

Normally (though not necessarily) when one uses gcc on Win32, one uses
'dmake' (or 'make'  with Cygwin) rather than 'nmake'. I think the important
thing is to use the flavour of make that is reported by 'perl -V:make'. What
does 'perl -V:make' report for you ?

What does 'perl -V:cc' report for you ? In fact it might be helpful to
simply see what 'perl -V' reports for you.

I'm not sure why 'nmake' is failing - it might be the "unrecognized
option" - but they are often simply ignored and non-fatal - so it might be
something else.

Anyway, if you can answer those questions and tell us a little about how
where/how you got gcc, then it might help sort things out.

I'm on Win32, but I don't have Inline::Java (and I don't know if anyone has
managed to successfully install it on Win32).

Cheers,
Rob

Reply via email to