Mail Archives: djgpp-workers/1996/07/13/14:04:33
The gcc driver program recognizes the .C extension as being different
from the .c extension on the (raw) DOS command line. .C, of course, flags
a C++ program. .C is synonomous with .c++, .cpp, .cc, .cxx. So there
are alternatives.
A problem arises with various DOS utilities which return filenames in all
uppercase, so if one uses these to automatically generate compilation
scripts, the wrong compiler gets called. It's not so much an issue with .c
and .C as it is with .ADB and .ADS. Gcc doesn't recognize these as Ada
units at all.
I propose submitting a request to change the comparison code in gcc to
make it case insensitve, as it already does for OS/2.
What do people think? Do people actually use the .C extension on DOS to
flag C++ programs?
- Raw text -