This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: regex.c not found, but it clearly exists
- From: Brian Dessent <brian at dessent dot net>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 13 Dec 2007 23:19:59 -0800
- Subject: Re: regex.c not found, but it clearly exists
- References: <b609cb3b0712132305p762ae688r769b7ff8feaf94b6@mail.gmail.com>
- Reply-to: mingw-users at lists dot sourceforge dot net
NightStrike wrote:
> As you can see, the file does exist and is nonzero. It is readable by
> user, group, and world. Why would gcc say it does not exist?
You're feeding a POSIX path to a MinGW application. MinGW applications
have no path translation ability and can only accept Win32 paths. So
no, the file does not exist in the eyes of i686-pc-mingw32-gcc because
it has no idea what /tmp is supposed to mean. But 'ls' is a Cygwin app
and knows what /tmp is, so of course that works.
You need to use MSYS if you want this to work, because MSYS does path
translation of command line arguments when invoking MinGW apps. Cygwin
does not because Cygwin is not intended to work with apps that don't
understand POSIX paths.
This has nothing to do with binutils, so I suggest you follow up on the
MinGW list.
Brian