derrick0627us has asked for the wisdom of the Perl Monks concerning the following question:

Hi! I followed the Perlxs tutorial up to example 4.

perlxstut#installing your extension

However, I keep getting this message when I issue nmake test in my environment.

LINK : fatal error LNK1104: cannot open file 'libmylib.lib'

Is there something wrong with my Makefile.PL?

use ExtUtils::MakeMaker; $Verbose = 1; WriteMakefile( NAME => 'Mytest2::mylib', SKIP => [qw(all static static_lib dynamic dynamic_lib)], clean => {'FILES' => 'libmylib$(LIBEEXT)'}, MYEXTLIB => 'mylib/libmylib$(LIB_EXT)', ); sub MY::top_targets { ' all :: static pure_all :: static static :: libmylib$(LIB_EXT) libmylib$(LIB_EXT): $(O_FILES) $(AR) libmylib$(LIB_EXT) $(O_FILES) $(RANLIB) libmylib$(LIB_EXT) '; }

Thanks.

Replies are listed 'Best First'.
Re: perl xs
by Anonymous Monk on Mar 07, 2012 at 02:31 UTC