From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Subject: Re: Mingw32 egcs 1.1.1, GCC_EXEC_PREFIX and CreateProcess 5 Jan 1999 07:20:14 -0800 Message-ID: <199901050700.BAA03528.cygnus.gnu-win32@modi.xraylith.wisc.edu> References: <199901042036 DOT VAA02870 AT wanadoo DOT fr> To: Gilles Depeyrot Cc: gnu-win32 AT cygnus DOT com Gilles Depeyrot writes: > Hi everyone, > > I'm having a problem with Mingw32 egcs-1.1.1 concerning the > GCC_EXEC_PREFIX environment variable. > > I launch and run egcs from inside an Win32 application using > a call to CreateProcess. This works fine except for the fact > that in this case, GCC_EXEC_PREFIX *must* be defined or I get > an error message: > > gcc: installation problem, unable to exec `cpp' Thanks for this very useful data point. I'm not sure why, but my guess is that CreateProcess does not fill in the argv[0] with the full pathname, and then GCC can't figure out where to look. This is also useful for folks using IDEs such as Quincy or Vide with mingw or cygwin. Regards, Mumit - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".