Mail Archives: djgpp/2003/06/02/01:33:01
> From: strags11 AT yahoo DOT com (Nick)
> Newsgroups: comp.os.msdos.djgpp
> Date: 1 Jun 2003 17:51:53 -0700
> >
> > This usually mean that Make cannot find the GCC executable file,
> > gcc.exe.
>
> I am inclined to believe that this is the problem, too. Even when
> "gcc -v" is the first directive in my rule, the make fails with the
> same error. But, the DJGPP directory is first in my path string. If
> it's not finding the executable, then perhaps the spawned shell (if
> there is one) is not reading this information correctly.
There is no spawned shell; the underlying library functions emulate
the shell (so that we could support some nifty features, like long
command lines).
What exactly is your PATH setting? Please type "PATH" from the DOS
box's prompt, hit [Enter], and post here the result.
Also, add a line saying just "set" to your Makefile, and post here
what it prints.
> Perhaps it has something to do with case-sensitivity, even though it's
> DOS? I modified the rule to as shown below. Note the results. The
> first echo command executes just fine, "x" is printed as it should be.
> The second echo, in all caps, does not.
What do you see if you go to the DJGPP's `bin' directory and type
"dir gcc*"?
Does it help to replace "gcc" with "GCC" in your Makefile?
(FWIW, on my system, either one works, so it's either something else
or maybe your system is different from mine in some crucial ways.)
- Raw text -