This may or may not help you. But it helped me, with an older version of Par::Packer.

This problem shows up because of a line in the myldr\Makefile.PL .That file is similar in later versions (for these lines).

line 70 my $cc = $Config{cc};

sets this location of the compiler. in my autogenerated Makefile in the same directory is

line 7 CC=C:/MinGW/bin/gcc.exe

Line 106 in myldr\Makefile.PL

} elsif ($cc =~ m/^gcc\b/i or ($cc =~ m/^cc\b/i and $gccversion)) {

As that line stands, it wants $cc to start with gcc, when it begins with C:/MinGW. So it won't find the $cc

A solution (good enough for my purposes) was

line 106:} elsif ($cc =~ m/\bgcc\b/i or ($cc =~ m/^cc\b/i and $gccversion)) {

The important line that this affects is

line 111     $res = ($^O =~ /^(?:MSWin|cygwin)/) ? 'win32.coff' : '';

since we want $res to = 'win32.coff'

In the autogenerated Makefile, this value shows up in the line for "OBJECTS =", and in the line after "$static.exe".

Without this change, the Resources Section is never created. But there may be other sources of glitches. If your compiler is not the MinGW gcc, this probably helps little.


In reply to Re: Win32::Exe - Resource section creation fails by Anonymous Monk
in thread Win32::Exe - Resource section creation fails by Dirk80

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.