in reply to Re^2: Adminmisc & V5.16
in thread Adminmisc & V5.16

:)  [ddg://site:perlmonks.org roth.net Makefile.PL] site:perlmonks.org roth.net Makefile.PL -> Can't find packages for Strawberry Perl (e.g., Win32::AdminMisc, etc) -> Compiling Win32::AdminMisc on ActiveState 5.10 -> https://code.google.com/p/libwin32/source/browse/tags/libwin32/0.07/AdminMisc/Makefile.PL

use ExtUtils::MakeMaker; use Config; $BORLAND = 1 if $Config{'cc'} =~ /^bcc32/i; WriteMakefile( 'INC' => ($BORLAND ? '' : '-GX'), 'OBJECT' => 'Dns$(OBJ_EXT) AdminMisc$(OBJ_EXT)', 'NAME' => 'Win32::AdminMisc', 'VERSION_FROM' => 'AdminMisc.pm', 'XS' => { 'AdminMisc.xs' => 'AdminMisc.cpp' }, 'dist' => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, ); sub MY::xs_c { ' .xs.cpp: $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) $(XSUBPP) $(XSPROTOARG) $(XSUB +PPARGS) $*.xs >xstmp.c && $(MV) xstmp.c $*.cpp '; }

Replies are listed 'Best First'.
Re^4: Adminmisc & V5.16 ( Win32-Daemon-20131206\Makefile.PL )
by Anonymous Monk on Oct 06, 2015 at 08:53 UTC
    Just ran into a problem using this postamble in  Win32-Daemon-20131206\Makefile.PL

    It should be

    sub MY::xs_c { ' .xs.cpp: $(XSUBPPRUN) $(XSPROTOARG) $(XSUBPPARGS) $*.xs >xstmp.c && $(MV) x +stmp.c $*.cpp '; }
      The problem was  Can't locate object method "new" via package "ExtUtils::ParseXS" at ....site\lib\ExtUtils\xsubpp line 50.