Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++

by Anonymous Monk
on Apr 17, 2007 at 20:05 UTC ( #610632=note: print w/replies, xml ) Need Help??


in reply to Re: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++
in thread A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++

Hi, I'm building a Perl extension (dll in Windows XP) using ExtUtils::MakeMaker. This dll needs to link with other libraries that were built in static mode (-MTd). My perl configuration states dynamic libraries (-MD) which causes MakeMaker to pull a dynamic C library (msvcrtd.dll). The other libraries are using the static C library (libcmtd.lib) These dynamic and static C libraries collide giving link errors. Is there a way to force perl to compile with (-MTd) albeit its configuration flags? Thanks, Avner Moshkovitz Research Analyst MacDonald Dettwiler Direct: (604) 231-2487 13800 Commerce Parkway Fax: (604) 278-2117 Richmond, B.C. Canada V6V 2J3 Email: amoshkov@mda.ca www: www.mda.ca
  • Comment on Re^2: A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://610632]
help
Chatterbox?
[Corion]: LanX: Maybe have an infinite-loop cmd file? Much easier than trying to manage that from within Perl IMO
[Corion]: Alternatively, relaunch the application from cron (or a Windows cron) every minute
[LanX]: will try infinite loop ...
[Corion]: :START ... goto START
[LanX]: oh .bat you mean?
[LanX]: obscure cult ...
[Corion]: LanX: cmd.exe is just another way to launch Perl
[LanX]: I know its a cult... and I repent it every time
[LanX]: But cygwin comes with path problems and powershell requires too much learning for me
[LanX]: eshell in emacs is often my resort in development

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-03-27 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.