|
From: Paul S. <pa...@is...> - 2000-12-10 12:56:16
|
Hello Franco, Franco Bez <fra...@gm...> wrote on Saturday, December 09, 2000: FB> Am Sam, 09 Dez 2000 schrieb Amit Lath: >>Hi >> >>I downloaded the gcc 2.95.2 zip file from the link on >>www.mingw.org page(to the sourceforge page). i have >>unzipped it to C:\gcc directory and have set the path You should have used c:\mingw instead. >>in autoexec.bat. running gcc -v gives the right output >>too. but when I try to run the standard hello world >>program it says file stdio.h not found. FB> Hi Amit, FB> First, better take the snapshot-release 2.95.2-1. It's proven to be more stable FB> than the "Stable - 2.95.2" release You got. With my understanding, that person downloaded exactly it. FB> Second, You also need the binutils - package AND the mingw-runtime AND the FB> win32-libraries packagaes. FB> The gcc-Zip file, only contains-the compiler(s) itself, stdio.h is in one of FB> the runtime packages (not sure if in mingw or win32) It's pity that even experienced mingw people are not sure where stdio.h is. There's no magic, and w32api vs mingw-runtime division is not arbitrary. w32api contains only stuff related to "native" win32. All the more standard things, like ANSI C support files are in mingw-runtime. Since stdio.h is ANSI C file, it's obviously in mingw-runtime. FB> The binutils-package contains the assembler, the linker and other essential FB> tools. GNU binutils are spread over three packages: libbfd, ld, binutils. Of course, they are all needed for proper functioning. I started (just started) alternative faq to cover these issues: http://www.mingw.org/faq.shtml FB> Ciao, FB> Franco >> -- Paul Sokolovsky, IT Specialist http://www.brainbench.com/transcript.jsp?pid=11135 |