www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/05/20/09:49:06

Date: Thu, 20 May 1999 15:48:08 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199905201348.PAA05738@acp3bf.physik.rwth-aachen.de>
To: cfng1 AT netvigator DOT com (NG Chi Fai)
Cc: djgpp AT delorie DOT com
Subject: Re: Help: what's difference between upper and lower case filenames
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B
X-Newsreader: TIN [version 1.2 PL2]
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019