--- Christer Sandberg <christer.sandberg@...> wrote: > Hi
> I downloaded
> http://prdownloads.sourceforge.net/mingw/mingw-1.0.1-20010726.tar.gz
> and upacked to a directory "mingw32" on the root of D:
> "D:\mingw32\bin" is in the path.
> The environment variable MINGDIR is set to "D:\mingw32" (i don't know if
> this is for mingw32 or for some other packege, anyway: it is set)
> Compiling:
> gcc -c foo.c
> complains about not finding cc1.exe or cpp0.exe which I found in
> "D:\mingw32\lib\gcc-lib\mingw32\2.95.3-5".
> I added "D:\mingw32\lib\gcc-lib\mingw32\2.95.3-5" to my path list and
> compilation goes fine
> When i try to link it complains about not finding "-lgcc" (to be more
> precise: "..\lib\gcc-lib\mingw32\2.95.3-5\..\..\..\..\mingw32\bin\ld.exe:
> cannot find -lgcc"). However libgcc.a is present in
> "D:\mingw32\lib\gcc-lib\mingw32\2.95.3-5".
>
> (The problem occures on a Windows NT box, I have used mingw on my W98
> without problems)
>
> /C
First a few "I hope it's this simple" questions:
Is GCC_EXEC_PREFIX set as an environment var?
Do a gcc --print-lib. Does that look odd?
Do a gcc --print-search-dirs. Does that look odd?
Is there another gcc.exe on your system, preceding /mingw32/bin/gcc.exe in
your path?
Danny
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your festive greetings online!
|