If I were to ditch Visual Studio 2008, and go with MinGW, how do I set up the environment?

You would just delete Visual Studio 2008 (or at least remove it from the path) and run ppm install MinGW. Nothing else needs to be done - MinGW and dmake will be installed and and made locatable, so you're right to go. (However, things might be stuffed up if Visual Studio is also getting found.)

If anyone here has tried both MS VisualStudio and the gcc tools to compile Perl modules specifically for Win32, which do you prefer and why?

Unless you're using the same compiler that was used to build ActivePerl (which is Visual Studio 6.0 for x86 builds of ActivePerl) you're better off with MinGW, imo. The reason is that MinGW uses the same C runtime (msvcrt.dll) as Visual Studio 6.0, so there's no mixing of C runtimes going on. In some situations, this is quite crucial.

If you really want to use Visual Studio 2008 as your compiler, you should build perl with that compiler.

Cheers,
Rob

In reply to Re: Compiling modules for win32 ActivePerl by syphilis
in thread Compiling modules for win32 ActivePerl by desemondo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.