Mail Archives: djgpp/2002/02/04/07:37:43
On 4 Feb 2002, Thomas Mueller wrote:
> Under DOS, how does gcc see the difference between prog.c and prog.C ? Does
> RHIDE keep whatever case the user types in?
Yes, the case you use when you type the file name matters.
> Or does gcc get the case from the command line?
It doesn't matter: both methods can be used.
Note that GCC accepts a special switch which tells it what is the
language of the file it is about to compile; that switch overrides the
defaults derived from a file name.
This, and some more, is explained in section 8.5 of the DJGPP FAQ list.
> DOS is not case-sensitive with file names and commands, all
> letters are converted to upper case.
DOS is only case-insensitive to file names. Command lines are _not_
upcased. Simply try "echo FOO" and "echo foo", and you will see that the
arguments are echoed in the same case you typed them.
- Raw text -