Cosimo Streppone found that adding "c:\strawberry-perl\mingw\libexec\gcc\mingw32\3.4.5" to the PATH environment variable fixed compilation errors

I'd be surprised if the fix was as simple as that. Admittedly that will fix the cannot exec `cc1' error - but the errors don't end there. It's certainly not good enough when it comes to compiling basic C scripts:
C:\C>type try.c #include <stdio.h> int main(void) { printf("Hello World\n"); return 0; } C:\C>gcc -o try.exe try.c gcc: installation problem, cannot exec `cc1': No such file or director +y C:\C>set PATH=C:\strawberry\c\libexec\gcc\mingw32\3.4.5;%PATH% C:\C>gcc -o try.exe try.c try.c:1:19: no include path in which to search for stdio.h C:\C>
And any compilation that includes perl.h fails, since the the standard C headers that perl.h includes aren't found.

I think that approach is a path to nowhere (though, admittedly, I haven't wandered very far down it). Each time one error is fixed, another pops up to replace it .... but if someone *does* have a solution for g77 (that avoids the need for a patched g77.exe) I'd be most grateful to hear it.

Cheers,
Rob

In reply to Re^2: Disappointed with latest Strawberry Perl by syphilis
in thread Disappointed with latest Strawberry Perl by syphilis

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.