If you don't have those set, try setting them and compiling again
I have:
INCLUDE=;C:\strawberry-perl\mingw\include;C:\strawberry-perl\perl\lib\
+CORE;C:\strawberry-perl\perl\lib\encode;C:\strawberry\c\include;C:\st
+rawberry\perl\lib\CORE;C:\strawberry\c\include;C:\strawberry\perl\lib
+\CORE
LIB=;C:\strawberry-perl\mingw\lib;C:\strawberry-perl\perl\bin;C:\straw
+berry\c\li
b;C:\strawberry\perl\bin;C:\strawberry\c\lib;C:\strawberry\perl\bin
They're all there except for the GnuWin32\include. There's certainly plenty of locations mentioned there that contain stdio.h - though the error is not that stdio.h can't be found, but that there's no path in which to search for it.
I thought I got past that error at one time, but now I find I can only avoid the
no include path in which to search for stdio.h error by commenting out
#include <stdio.h> in the source file ... but then I get:
ld: crt2.o: No such file: No such file or directory
The issue has come up a number of times on the MinGW mailing list, and the solution has always been to use the patched executables - or to rebuild MinGW using the patched source. (No other solutions have been offered, afaik.) Rebuilding MinGW would certainly fix my issue with g77, but I've yet to find instructions (that I can comprehend) on how to do that. Unfortunately, whilst various people have made available patched versions of gcc, g++ and collect2, no-one has yet provided a patched version of g77.
I appreciate you taking the time to consider this issue, btw.
Cheers,
Rob
Update: For a bit of an explanation of what's really going on (and the fixes produced), see the thread
http://www.nabble.com/environment-hosed-during-upgrade-to9195667.html
And the best source I know of for the patched executables is
http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.