Ajaya wrote:
> I refer to a thread which I've quoted at the end of this mail.
>
> I have followed the instructions but got the error message
> (captured from DOS screen):

which system are you on? NT or 9x?
if you are on 9x, then the problem is the '&&' (I've
stripped down the path to make the line more readable):

    ...\perl.exe -I...\lib -I...\lib ...\xsubpp
    -typemap ...\typemap -typemap typemap GUI.xs >xstmp.c &&
    ...\perl.exe -I...\lib -I...\lib -MExtUtils::Command
    -e mv xstmp.c GUI.c

if this is your case, there is a (very tricky) workaround:
open Makefile, search for XSUBPP (the line above), which
should read something like:

    $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP)
    $(XSPROTOARG) $(XSUBPPARGS) $*.xs >xstmp.c && $(MV)
    xstmp.c $*.cpp

note this is on one line!
change it to:

    $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP)
    $(XSPROTOARG) $(XSUBPPARGS) $*.xs >xstmp.c
    <newline>
    if %errorlevel == 0 $(MV) xstmp.c $*.cpp

note you should insert a newline (eg. press return)
instead of <newline> !!!

this should be done wherever you find && in your
Makefile; also note that if you run Makefile.pl, it
will destroy all the changes you did.

if you still can't build with this procedure, I have
a (yet very tricky) patch to MakeMaker to produce
9x-compatible Makefiles, but I can send it to you
tomorrow (I have it at home...).

BTW, please don't tell anybody that I gave you this
total hack ;-)

cheers,
Aldo




Reply via email to