Mail Archives: djgpp/1999/05/20/09:49:06
In article <3743A854 DOT 68C69C7B AT netvigator DOT com> you wrote:
> Hello all,
> I have a file TESTSEEK.CPP (exact, all capital letters). Below is the
> result when I use DJGPP to compile it using capital letter filename.
> Why did this happen? DJGPP compiles it if I use small letter filename -
> testseek.cpp.
gcc, as a Unix-born program, is case sensitive in its filenames. In particular,
it makes a different in the filename extension, which is used by gcc to
decide what language each source is written in:
.s : raw assembly
.S : assembly to be preprocessed by cpp
.c : C
.C : C++
.cxx: C++
.cpp: C++
.CPP is not in that list, so it gcc doesn't recognize your file. This
is exactly what it tells, in the error message, as well:
> gxx -Wall -W -ggdb3 TESTSEEK.CPP
> TESTSEEK.CPP: file not recognized: File format not recognized
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -