I saw the MS VC7 compiler offered, downloaded it, posted the news, downloaded the necessary libraries, and tried to build Perl with it. I had to patch Makefile so that the build process for miniperl works:
- msvcrt.lib seems gone, so I substituted libc.lib for that
- The delayed loading of winsock.dll doesn't seem to work, so I removed it
- The compiler wants a special command line switch, /ML, if it should link to libc, so I changed that too.
This is the diff of my 5.9.1 Makefile, as downloaded from perl.com :
< DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayi
> #DELAYLOAD = -DELAYLOAD:wsock32.dll -DELAYLOAD:shell32.dll delayi
> DELAYLOAD =
< LIBC = msvcrt.lib
> #LIBC = msvcrt.lib
> LIBC = libc.lib
< OPTIMIZE = -Od -MD -Zi -DDEBUGGING
> #OPTIMIZE = -Od -MD -Zi -DDEBUGGING
> OPTIMIZE = -Od -ML -Zi -DDEBUGGING
< OPTIMIZE = -MD -DNDEBUG
> #OPTIMIZE = -MD -DNDEBUG
> OPTIMIZE = -ML -DNDEBUG
< CFLAGS = -nologo -Gf -W3 $(INCLUDES) $(DEFINES) $(LOC
> CFLAGS = -nologo -GF -W3 $(INCLUDES) $(DEFINES) $(LOC
< # We need this for miniperl build unless we override canned
> # We need this for miniperl build unless we override canned
< "ccflags=-nologo -Gf -W3 $(OPTIMIZE:"=\") $(DEFINES) $
> "ccflags=-nologo -GF -W3 $(OPTIMIZE:"=\") $(DEFINES) $
< perlglob$(o) setargv$(o)
> perlglob$(o) $(SETARGV_OBJ)
Miniperl builds OK, but when I do nmake test, I get an access violation in the newly created perl.exe for some instruction at 0x77892373, which tried to read memory at 0x000000000f - so I did something wrong while slashing around in the Makefile. But what?
Update: Rephrased the last paragraph
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||