You have somehow managed to generate a Makefile written for dmake ... but then that Makefile gets processed by nmake, and nmake doesn't understand Makefiles that were written for dmake.

You have a perl that specifies that perl -V:cc is cl and that perl -V:make is nmake. If you wish to use a mingw compiler to build a DBD module for that perl then the first thing you must do is to install ExtUtils::FakeConfig. And the second thing you must do is to set PER5OPT=-MConfig_m set PERL5OPT=-MConfig_m (Thanks to hv for the correction.)
Next you check that perl -V:make reports dmake and that perl -V:cc reports gcc. (If that's not happening, then something is not right.)
Then you have a chance of success ... or we'll at least start seeing helpful error messages. I know this is something that can work.

I actually think that if you were to instead use your MS compiler && provide correct command line arguments to the perl Makefile.PL ... command, then you might achieve what you want. But I don't know if this is something that can work.

In my opinion, the simplest solution is to just install one of the later "portable" editions of Strawberry Perl, where both DBD::MySQL and DBD::MariaDB are already installed, and can be updated using the cpan command if an upgrade of those modules is needed.
This is also something that can work.

Cheers,
Rob

In reply to Re^5: DBD:Mysql compilation failed on windows by syphilis
in thread DBD:Mysql compilation failed on windows by pesubbia

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.