gszczesz has asked for the wisdom of the Perl Monks concerning the following question:
I appologise for what may be a noob question, but I've been racking my brain on how to compile in Microsoft VC++ a statically linked perl program.
Here's what I found:
1) Dynamically linked perl works fine.
2) If I change perl510.lib to perl510s.lib, it stil compiles and still ask for perl510.dll when I run the program.
3) If I change Runtime Library setting to "Multi-Threaded" from "Multi-Threaded DLL", and also change the included CRT library from msvcrt.lib to libcrt.lib, I get errors during compilation. If I ran perl-static -V, it shows that it uses the dynamic msvcrt.lib and not libcrt.lib
So there are 2 issues there: Why can't I compile in perl510s.lib and no longer need perl510.dll. Secondly, if I want to staticaly compile the CRT library in the perl library, how do I do that?
Finally, why does perl-static -V show that is uses perl510.lib and not perl510s.lib?!
Greg
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Compiling with static perl510s.lib
by syphilis (Archbishop) on Dec 02, 2009 at 05:06 UTC | |
by gszczesz (Novice) on Dec 02, 2009 at 17:14 UTC | |
by syphilis (Archbishop) on Dec 03, 2009 at 00:25 UTC | |
by gszczesz (Novice) on Dec 04, 2009 at 02:05 UTC | |
|
Re: Compiling with static perl510s.lib
by Anonymous Monk on Dec 02, 2009 at 04:32 UTC |