This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [MinGW] Set NATIVE_SYSTEM_HEADER_DIR relative to configured prefix


On 12/19/06, Bob Rossi <bob_rossi@cox.net> wrote:
If I then untar the mingw-runtime and the w32api into the C:/mingw
directory both the gcc and g++ commands find the header files, however,
they end with this error,

  C:\cygwin\home\bar\tmp\main>g++ -o main main.cpp
  g++: _spawnvp: No such file or directory

This is most likely because the compiler cannot find as.exe or ld.exe from binutils (run with the "-v" option to be sure). To resolve this, just extract the binutils binaries into "$FOO/mingw32" again (assuming you configured GCC with "--target=mingw32"), where "$FOO" is the folder where you copied over your GCC binaries.

Thanks,
Ranjit.

--
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA. Web: http://rmathew.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]