|
From: Earnie B. <ea...@us...> - 2009-03-06 12:17:22
|
Quoting Lorenzo Bettini <be...@ds...>:
>
> mh... OK, I still don't agree... my point was only that if on the shell
>
You seem to not understand that there are two very different C runtimes
involved with your examples below.
> less /usr/local/share/myfile
>
This one uses the MSYS runtime while
> works, it should also work when issuing from within a program
>
> fopen("/usr/local/share/myfile")
>
this one is using the MSVCRT runtime.
> that's all
>
And if you want to use a Cygwin runtime then use Cygwin (MSYS is a fork
of Cygwin). MSVCRT has no idea what /usr/local/share/myfile is unless
the current active drive happens to have such a directory. MSYS has a
simplistic goal of being an interface between the UNIX scripting world
and the natural windows program. The MinGW gcc builds natural windows
programs. By natural I mean it uses the MSVCRT runtime.
Earnie
|