Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: linking C/C++ lib with Perl h2xs XSUBs.

by derrick0627us (Novice)
on Mar 06, 2012 at 23:14 UTC ( [id://958180]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://958180]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-20 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found