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?!
GregIn reply to Compiling with static perl510s.lib by gszczesz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |