in reply to Re^3: linking C/C++ lib with Perl h2xs XSUBs.
in thread linking C/C++ lib with Perl h2xs XSUBs.

Hi! I followed the same procedure but I am still seeing the same error message after running nmake test.
LINK : fatal error LNK1104: cannot open file 'libmylib.lib'
This is 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) '; }
What is wrong here? Thanks.